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

Adding which song Im currently listening to inside Spotify, to a website, using the Spotify API?

I’m in the process of creating a freelance site. I’d like to be able to add a "currently listening to" (Track Name - Artist Name)
/
    section linked directly from Spotify showing the song that is currently being played. I know this can be…
1
vote
2 answers

Detecting Spotify Song Plays

I'm working on a mobile application that detects song plays from various media players, both on iPhone and Android. We currently support a number of applications in both platforms. Our application works in a similar way to how Last.FM detects and…
1
vote
0 answers

Unable to connect to last.fm api through php

I am trying to connect to Last.fm api through php, using the packages downloaded from https://github.com/matto1990/PHP-Last.fm-API . Here is my code: public function getTopArtists($methodVars) { // Check for required variables if (…
rahul_d
  • 11
  • 1
1
vote
1 answer

last.fm JSON data / how do I truncate this long array?

I'm a bit of a novice with JSON. I'm working on building an events page using the JSON feed from last.fm. The feed is working fine, but the issue is when multiple artists come across for the same event, such as a music festival. Right now the whole…
1
vote
3 answers

Check if key exists in last.fm returned json

I'm writing an iOS app that uses the last.fm web services to search for albums. The following code converts the returned json to an NSArray: results = (NSArray *)[[[json valueForKey:@"results"] valueForKey:@"albummatches"]…
Cheese1223
  • 107
  • 1
  • 11
1
vote
2 answers

Python & pylast - AttributeError: 'NoneType' object has no attribute 'encode' python

I'm a complete noob who just started learning Python. I'm playing around with the pylast library for Last.fm to pull a list of a user's neighbours & some of their attributes, but when I try to print a neighbour's country, I get the following error:…
Daniel
  • 53
  • 6
1
vote
1 answer

Fetching data from last.fm through JSON doesn't give right response

For some kind of weird reason my JSON requests writes the following HTML. undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined…
Ferrax
  • 35
  • 1
  • 1
  • 3
1
vote
0 answers

How to use Caching Feature of PHP last.fm API

I'm using PHP last.fm API to fetch artist image I'd like to know how to cache the calls so that I don't need to make same call again and again. The API has facility to cache : DiskCache, SqliteCache but there is no documentation, could anyone please…
Sam
  • 81
  • 2
  • 8
1
vote
1 answer

Using the JSON data returned by the last.fm api

I am trying to pull the top 6 artists from last.fm using the last.fm api. I am able to pull in the JSON data and output it just fine. However, when it comes to actually using specific pieces of data, I am at a loss. The only thing that I want to…
1
vote
1 answer

How to programmatically display last last song on last.fm using jQuery?

I'm using jQuery to display last.fm data on my website. In this case, I'm trying to show my last song on my last.fm profile, using the code…
João
  • 635
  • 1
  • 10
  • 25
1
vote
1 answer

Parsing simple JSON Error

I'm trying to parse some simple JSON data and pull out certain parts to display as HTML. All is going well apart from my Last.fm JSON data has a child of recenttracks.track.artist_text The text isn't being translated or picked up properly and (as…
mbklnd
  • 131
  • 1
  • 11
1
vote
3 answers

Error Handling with LastFM API and simplexml_load_file

I'm using simplexml_load_file to pull album information from the LastFM API and having no problems when the requested album matches. However, when the album is not found, LastFM returns an error, which causes the code below to output a "failed to…
LowVelocity
  • 65
  • 1
  • 6
1
vote
1 answer

Last.fm API jQuery

At the moment I have integrated Last.fm API on my site www.midnightlisteners.com but it puts all the Last.fm data on the last one Kanye West. If you hover over the ( i ) icon you will see the data comes up in a tool-tip. I would like to loop through…
Pullapooh
  • 161
  • 1
  • 4
  • 14
1
vote
1 answer

WP7: scrobble song to last.fm

I'd like to send a scrobble to last.fm, but don't know how to do this. I searched for the last.fm-API for C#. If I want to add it to the project it says it was not programmed for Windows Phone (of course). How can I still scrobble songs?
Stacksatty
  • 191
  • 2
  • 13
1
vote
1 answer

Rails3 helpers and dynamic content

I've been working to pull dynamic data from last.fm using youpy's "lastfm" gem. Getting the data works great; however, rails doesn't seem to like the dynamic portion. Right now, I have added the code to a helper module called "HomeHelper" (generated…
audiacloud
  • 13
  • 4