artist.search {RLastFM}R Documentation

API call to artist.search

Description

API call to artist.search

Usage

artist.search(searchterm, limit = NA, page = NA, key = lastkey, parse = TRUE)

Arguments

searchterm Search term, in quotes
limit limit of results to return. Defaults to maximum value of 20.
page Results are paginated. If more than the first 20 results are requested, start at page = 2.
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

artist Artist name
mbid Artist mbid

If parse = FALSE, a object of type "XMLInternalDocument" and "XMLAbstractDocument"

Note

API is sensitive to spelling.

Author(s)

Greg Hirson <ghirson@ucdavis.edu>

References

http://www.last.fm/api/show?service=272

Examples

res = artist.search("Rolling")
#res$artist[1:3]
# [1] "The Rolling Stones"                    
# [2] "Rolling Stones"                        
# [3] "Rolling Stones & Dave Matthews"        

[Package RLastFM version 0.1-4 Index]