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

Error in the file returned from a request to the Last.FM API

I'm using the Last.fm API with jquery as follows: $.getJSON('http://ws.audioscrobbler.com/2.0/?JSONCallback=?', { method: "user.getweeklytrackchart", user: "rj", api_key: "fb04ae401284be24afba0fbc2f4b0efb" }, function(data) { //…
ben
  • 29,229
  • 42
  • 124
  • 179
1
vote
3 answers

How to loop through last.fm results with getJSON

I'm new to JS and trying to get my last.fm toptracks over the last 7 days with a limit of 3 from their API…
Jeremy P. Beasley
  • 679
  • 1
  • 7
  • 22
1
vote
1 answer

How to add last.fm now playing into my site using Api

Hi guys i been trying to figure out for a long time but i suck at this, i found this code on google and i added it adn changed what i need but still doesnt work i really need this for my site: http://www.balkan-party.cf/ I found code here:…
user4606459
1
vote
0 answers

Rvest returns error "Empty reply from the server" when using Last.fm web API

Ok, so what I am trying to do is to get a list of top tags for an artist from Last.FM web API by parsing XML file it returns for my request using rvest. However, when I am trying to get contents of the XML, I get this…
mishaulitskiy
  • 11
  • 1
  • 1
1
vote
0 answers

How to do I loop over list of artists to get LastFM artist tags?

I have a list of musicians/artists in an excel document. I need to figure out what genre they are considered. LastFm has tags that basically give some idea of what genre different artists/groups are. LastFM has an api that you can call to get…
Kyle Pennell
  • 5,747
  • 4
  • 52
  • 75
1
vote
1 answer

Why do API's (like Facebook, last.fm etc) generate session keys for logged in users?

I am building an RESTful API for an application I am working on and client coders need to be able to submit data to the API on behalf of a user. All the popular API's I've used require me to send the generated session token (created when a user is…
Gcoop
  • 3,372
  • 4
  • 26
  • 35
1
vote
1 answer

Adjusting page or limit from last.fm api in java eclipse

I`m Student I am using current last.fm Developer api at java eclipse. But the problem occurred during use. I wanted metadata values of a large amount. But result is only 50 pieces. I know that the default value is 50. So, I have adjusted Page or…
1
vote
0 answers

retrieve album details using last.fm api c#

I am having trouble retrieving artist's album data from last.fm api. I am using lastfm-sharp library. I want to show artist's all albums with their release date, genre and album art. But when I try to get release date I get exception thrown.…
Malav Shah
  • 143
  • 2
  • 16
1
vote
0 answers

Apostrophes often interfering with script?

So, I'm creating a script that sometimes deals with artist and song names, and as you probably know, some artists/bands and songs have apostrophes in them. My problem here is that I'm trying to link to these bands/artists and songs, and the…
Cody
  • 219
  • 2
  • 12
1
vote
1 answer

Display dictionary element with '#' in the key using django template tag

I am trying to use the last.fm API, and the artist search returns the following dictionary with an image: {u'#text': u'http://userserve-ak.last.fm/serve/34/79694767.png', u'size': u'small'} However, in my django template, I can't seem to access the…
corycorycory
  • 1,448
  • 2
  • 23
  • 42
1
vote
2 answers

str_replace with Last.fm urls

I'm writing a Last.FM script that shows what song you're listening to, and I'd like to be able to link the artist to the song title and everything. How would I go about doing this? I mean, I'm assuming that I'll use str_replace(), but how? The way…
Cody
  • 219
  • 2
  • 12
1
vote
1 answer

Connection Closed Gracefully requesting from last.fm using Indy TIdHTTP

I'm trying to use the last.fm api using Indy's TIdHTTP component. When I send a request, I keep receiving Connection closed gracefully without receiving any data. However, when I copy the same URL from the component (directly to the clipboard) into…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
1
vote
1 answer

How to accessing xml response when site also issues an HTTP error code

the following url returns the expected resonse in the browser: http://ws.audioscrobbler.com/2.0/?method=user.getinfo&user=notonfile99&api_key=8e9de6bd545880f19d2d2032c28992b4 No user with that name was…
BarryM
  • 69
  • 4
1
vote
0 answers

Last.fm get charts by date

I want to get charts at a specific date. The API page only has current charts: http://www.last.fm/api/show/chart.getTopTracks The chart page lets users choose a date: http://www.last.fm/charts So it should be possible but I don't see it in the…
onepiece
  • 3,279
  • 8
  • 44
  • 63
1
vote
1 answer

Enable proxy support of pyLast

I want to enable the proxy, I found a method named enable_proxy, but when I do it like this: network = pylast.LastFMNetwork(api_key = API_KEY, api_secret = API_SECRET, username = username, password_hash =…
user3563297