Last.fm API

API

Comprehensive music data API for artists, tracks, user scrobbles, and recommendations

Visit Website

Overview

The Last.fm API provides RESTful endpoints to access a vast database of music metadata, user scrobbles, and social music insights. Key endpoints include artist info (top tracks/albums), track details (lyrics, similar tracks), user history (recent scrobbles, loved tracks), and global charts. Responses are in JSON format. Use cases include building music recommendation apps, integrating user music stats into platforms, creating personalized playlists, and analyzing music trends across audiences.

Example Integration (JavaScript)

script.js JS

fetch('https://www.last.fm/api')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful
  • JSON Responses
  • API Key Authentication
  • Artist/Album/Track Metadata
  • User Scrobble History
  • Similar Music Recommendations
  • Global Chart Data

Frequently Asked Questions

? Is Last.fm API free to use?

Yes, the Last.fm API offers a free tier for non-commercial use with rate limits (5 requests per second). Commercial usage requires contacting Last.fm for a paid plan.

? Does it require an API Key?

Yes, you must register for a free API key from the Last.fm developer portal to authenticate and access the API endpoints.

? What is the response format?

The Last.fm API returns responses in JSON format for all its supported endpoints.

Top Alternatives

Spotify Web API Search Google
Deezer API Compare
MusicBrainz API Search Google

People Also Ask about Last.fm API

Last.fm API vs Spotify Web APILast.fm API vs Deezer APILast.fm API vs MusicBrainz API Last.fm API 2025 review

Tool Info

Pricing Freemium
Category Music
Platform Public API

Pros

  • Vast Music Database
  • Well-Documented
  • Supports Social Music Data
  • Free Non-Commercial Tier

Cons

  • Rate Limited (5 req/sec Free Tier)
  • Requires API Key Registration
  • Commercial Usage Needs Paid Plan
  • No SLA for Free Users

More Music Tools