Questions tagged [last.fm]

Last.fm is a music recommendation service.

The Last.fm API allows anyone to build their own programs using Last.fm data, whether they're on the web, the desktop or mobile devices. Find out more about how you can start exploring the social music playground on the link below.

Links

320 questions
1
vote
1 answer

Last.fm getting image from track.getinfo

I'm a bit of a newbie in PHP programming, and have been Googleing and trying for hours now to get this to work. However, I'm out of luck. Hopefully someone can help me :-) What I'm trying to do is to use the Last.FM API to get the cover image of a…
zorensen
  • 334
  • 4
  • 19
1
vote
1 answer

last.fm java API get recentTracks of a user within a data range

I am trying to get a list of tracks listened to by a user in a specific time range. According the the last.fm api this is possible with getRecentTracks (see here). But I am using the Java API and the method getRecentTracks does not have input…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
2 answers

Last.FM API parse with PHP

I'm new to this so bear with my noobish question. Basically I want a user to enter a search phrase into a web-form and for the query to be passed to the lastFM API and return top artists using that phrase based on their "gettopartists" API node.…
user273939
1
vote
1 answer

Last.fm java API - how to get users from PaginatedResult

I am a but puzzled about the lastfm API, more exactly about the PaginatedResult I read all users from a group in a PaginatedResult: PaginatedResult users = Group.getMembers("Classic Rock", key); Then I tried two methods to…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
1 answer

Api Last.fm: track.getPlaycount() return -1

I use the java api for binding last.fm http://www.lastfm.fr/api to extract some information about querlques songs. I search songs according tags and I want to get the playcount of each song that matches the tag that I took, but the playcount me…
FRIDI Mourad
  • 87
  • 1
  • 6
  • 16
1
vote
1 answer

QtCreator can't find lastfm library file liblastfm.so.1 on Linux

I'm doing a project in C++ for school in which I decided to use LastFM's library (github repo). I followed the instructions and installed it and all the dependencies but when I put LIBS += -llastfm in the .pro file in Qt as stated in the 'Using…
Bogdan Raducan
  • 177
  • 2
  • 11
1
vote
1 answer

Select certain parts from last.fm JSON response in PHP

I am retrieving artist information from the last.fm API. Here is a sample response for U2: { "artist" : { "stats" : { "playcount" : "117896887", "listeners" : "3077194" }, "name" : "U2", "tags" : { …
1
vote
2 answers

Retrieving Venue Information with pylast and last.fm

I have been using pylast.py to retrieve various types of information about artists and events from Last.fm. However, pylast doesn't have any functions to retrieve venue information from the event. In particular, if you look at the XML for…
corycorycory
  • 1,448
  • 2
  • 23
  • 42
1
vote
1 answer

How to increase search speed from external API?

How can I speed the search results generated from pinging the Lastfm api? Here is the code we're working with: def self.search(term) LastfmAPI.artist_search(term).map { |a| Lastfm::Artist.new(a) } end # Name and lastfm_id are synonyms …
user2821877
  • 59
  • 1
  • 4
1
vote
1 answer

Download String From Address "http://www.last.fm/music/Boney%20M./+images"

I`m trying to download string from address "http://www.last.fm/music/Boney%20M./+images",but return null, WebClient webClient = new WebClient(); string html = webClient.DownloadString(new Uri("http://www.last.fm/music/Boney%20M./+images"));
vothanhdat
  • 89
  • 1
  • 7
1
vote
0 answers

Talking to the Last.fm API

Working on a web app that talks to the last.fm API. For some reason, the ajax() function is not returning anything. Even though I see the app trying to talk with the API there's no callback, and even the "always" and "fail" functions fail to run.…
Ben Davidow
  • 1,175
  • 5
  • 23
  • 51
1
vote
1 answer

Error Sending Request for Last.FM Album Artwork

Currently, I am attempting to use the metadata from our streaming provider, StreamOn to send a request out to Last.FM to get the original sized album artwork. I am new to the world of APIs so it is rather confusing to me, however I am managing. My…
montelc0
  • 101
  • 9
1
vote
2 answers

Trouble getting feed item from JSON

I'm trying to retrieve album artwork from the Last.FM API using JSON and jQuery Ajax, but I'm having trouble accessing the data structure, which looks like: "image":[ { …
Jody Heavener
  • 2,704
  • 5
  • 41
  • 70
1
vote
2 answers

Can't get Last.FM API PHP Proxy to work

I'm trying to regularly retrieve JSON album data from the Last.FM API, and since they don't support JSONP I'm using a PHP Proxy to circumvent the cross-domain limitation. Here's my PHP proxy:
Jody Heavener
  • 2,704
  • 5
  • 41
  • 70
1
vote
1 answer

XMLHttpRequest gives Invalid state when using Last.fm API

I'm trying to integrate scrobble support into Ubuntu Touch's music app, but I have some difficulty since I can't seem to get the session key working. In request() I get "Error: Invalid state" on row 53. It seems like last.fms API doesnt answer…
Daniel Holm
  • 4,347
  • 3
  • 19
  • 27