artist.search {RLastFM} | R Documentation |
API call to artist.search
artist.search(searchterm, limit = NA, page = NA, key = lastkey, parse = TRUE)
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? |
If parse = TRUE,
artist |
Artist name |
mbid |
Artist mbid |
If parse = FALSE, a object of type "XMLInternalDocument" and "XMLAbstractDocument"
API is sensitive to spelling.
Greg Hirson <ghirson@ucdavis.edu>
http://www.last.fm/api/show?service=272
res = artist.search("Rolling") #res$artist[1:3] # [1] "The Rolling Stones" # [2] "Rolling Stones" # [3] "Rolling Stones & Dave Matthews"