track.getInfo {RLastFM}R Documentation

API call to track.getInfo

Description

API call to track.getInfo

Usage

track.getInfo(track = NA, artist = NA, mbid = NA, key = lastkey, parse = TRUE)

Arguments

track track title
artist artist name
mbid optionally, artist MBID
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
playcount reported playcount
listeners reported number of listeners
album album title
position track position
duration track duration
artmbid mbid for the artist
albmbid mbid for the album
id LastFM ID


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

Examples


track.getInfo("Video Killed the Radio Star", "The Buggles")$playcount
#[1] 484685

[Package RLastFM version 0.1-4 Index]