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
0
votes
1 answer

How do I use last.fm api in java eclipse?

I'm trying to use the last.fm api in eclipse for a school project, but I'm not quite sure how to go about doing that. I'm using java to write my code and javafx to create my project. Any information help.
snapkin
  • 21
  • 2
0
votes
1 answer

last.fm how to use Scrobbler gem in irb?

I'm trying to test out scrobbler/scrobbler2 gem (http://scrobbler.rubyforge.org/) in irb. The problem I'm having is that every time I try to run it in irb, I get the following error: -- Loading development environment (Rails 2.3.9) >> album =…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
0
votes
0 answers

Lastfm API - retrieving artist bio

I'm creating a small music suggestion website using the LastFM API. I've succesfully set up the search function, where people can enter an artist they like and get back one that is similar (using this http://www.last.fm/api/show/artist.getSimilar).…
0
votes
2 answers

Read xml nodes values from web service

I am trying to read xml nodes values from lastfm web service that look like this:
tone
  • 1,535
  • 3
  • 15
  • 20
0
votes
1 answer

Last.FM API in Android Studio 404 error

I'm attempting to use the last.fm API (http://www.last.fm/api/mobileauth) restful using Android Studio and the Loopj Android AsyncHttpClient plugin (http://loopj.com/android-async-http/) but I keep getting a 404 error, but can't see why. Code below.…
0
votes
1 answer

HTTP error fetching URL. Status=500

I'm trying retrieve artists photos for Music player using last.fm api and Jsoup connect protected Bitmap doInBackground(String... strings) { Bitmap bmp; try { Document doc =…
user2784556
  • 61
  • 2
  • 7
0
votes
1 answer

UTS to DateTime in Python from Last.fm API

The last.fm API using user.getRecentTracks method's response supplies a date in the following format: "date": { "#text": "11 Dec 2015, 01:41", "uts": "1449798068" }, What is this "uts" field and how do I convert it into datetime string…
Jason Melo Hall
  • 652
  • 2
  • 11
  • 23
0
votes
2 answers

last.fm API issues

I am using last.fm JavaScript API (https://github.com/fxb/javascript-last.fm-api) for fetching similar tracks (track.getSimilar). last.fm API track.getSimilar response success: function(data) { for (var i = 0; i < data.similartracks.track.length;…
0
votes
2 answers

How do I send in a REST request (to use an API)?

I'm writing a small web app for myself in Rails and I want it to use Last.fm's API. I'm incredibly new to web development in general, so I'm not sure where to even begin. http://www.last.fm/api/rest I'm not asking for a step-by-step tutorial or…
Carlo
  • 17
  • 1
  • 3
0
votes
6 answers

Making use of a JSON attribute that doesn't always exist. Using jquery

I am writing a short script that connects to the LastFM api to get my last scrobbled song. The issue I am having is that the JSON version has an attribute for "now playing" which when you are currently listening to a song has the value of "true".…
Thoron
  • 3
  • 2
0
votes
1 answer

jquery get function not working, even though the URL of the request works fine?

I'm using jquery to access a method of the Last.FM API. Here is my jquery code: $.get('http://ws.audioscrobbler.com/2.0/','method=user.getweeklytrackchart&user=rj&api_key=fb04ae401284be24afba0fbc2f4b0efb', function(data,status) { …
ben
  • 29,229
  • 42
  • 124
  • 179
0
votes
1 answer

preview iTunes/Last.fm tracks from withing app

Is it possible to allow users to preview music from either Last.fm or iTunes from within my app? Are apple OK with apps streaming preview clips of music in apps? This is a monotouch app. w://
user156888
0
votes
1 answer

What's wrong with this Last.fm geo.getEvents API query?

I'm attempting to use the geo.getEvents method in Last.fm's Web services, which you can read about here: http://www.last.fm/api/show/geo.getEvents I'm attempting to use it like…
gtsioni
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

guzzle and last fm API

I'm using Laravel for about one month and i wanted to try the guzzle module, to get last fm user infos I've tried this request in my controller : $client = new \GuzzleHttp\Client(['base_uri' => 'http://ws.audioscrobbler.com/']); //$client =…
Yassin Siouda
  • 13
  • 1
  • 5
0
votes
2 answers

code is working laggy in postExecute but won't work in doInBackground?

I am fetching album art with the last.fm api in an asynctask class. The code works in postExecute() with latency, though it won't work at all in doInBackground().. it is not making updates to my UI at all, so i'm not sure what's going…
user4875457