geo.getTopArtists {RLastFM} | R Documentation |
API call to geo.getTopArtists
geo.getTopArtists(country, key = lastkey, parse = TRUE)
country |
Country name |
key |
API key, defaults to global variable lastkey |
parse |
Parse the returned XML into a list? |
If parse = TRUE,
artist |
Artist name |
playcount |
Reported playcount |
mbid |
Artist mbid |
rank |
rank |
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=297
res = geo.getTopArtists("Canada") do.call("cbind", res)[1,1:2] # artist playcount # "Radiohead" "4103"