album.search {RLastFM}R Documentation

API call to album.search

Description

API call to album.search

Usage

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

Arguments

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?

Value

If parse = TRUE,

album Name of matching albums
artist Name of matching artists

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

Note

The API is sensitive to spelling. For example, searching for "Yanke Hotel Foxtrot" will return 0 results.

Author(s)

Greg Hirson <ghirson@ucdavis.edu>

References

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

Examples


res = album.search("Yankee Hotel")
#res
#$album
#[1] "Yankee Hotel Foxtrot"       "Yankee Hotel Foxtrot Demos"
#
#$artist
#[1] "Wilco" "Wilco"

[Package RLastFM version 0.1-4 Index]