album.search {RLastFM} | R Documentation |
API call to album.search
album.search(searchterm, key = lastkey, limit = NA, parse = TRUE)
searchterm |
Search term, in quotes. |
key |
API key, defaults to global variable lastkey |
limit |
Return limit. Defaults to maximum of 30. |
parse |
Parse the returned XML into a list? |
If parse = TRUE,
album |
Name of matching albums |
artist |
Name of matching artists |
If parse = FALSE, a object of type "XMLInternalDocument" and "XMLAbstractDocument"
The API is sensitive to spelling. For example, searching for "Yanke Hotel Foxtrot" will return 0 results.
Greg Hirson <ghirson@ucdavis.edu>
http://www.last.fm/api/show?service=357
res = album.search("Yankee Hotel") #res #$album #[1] "Yankee Hotel Foxtrot" "Yankee Hotel Foxtrot Demos" # #$artist #[1] "Wilco" "Wilco"