Last.fm API
APIComprehensive music data API for artists, tracks, user scrobbles, and recommendations
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)
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
People Also Ask about Last.fm API
Tool Info
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