track.search {RLastFM}R Documentation

API call to track.search

Description

API call to track.search

Usage

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

Arguments

track track title
artist artist name
limit limit of responses
page page to start reporting from, based on limit
key API key, defaults to global variable lastkey
parse Parse the returned XML into a list?

Value

If parse = TRUE,

track track title
artist artist name
listeners number of listeners


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=286

Examples

track.search("Find A Way", "A Tribe Called Quest")

# $track
# [1] "Find a Way"

# $artist
# [1] "A Tribe Called Quest"

# $listeners
# [1] "46199"

[Package RLastFM version 0.1-4 Index]