LastFm

API

RESTful API for music metadata, user stats & scrobbling

Visit Website

Overview

The LastFm API provides RESTful endpoints for accessing music metadata (artists, albums, tracks), user listening history, charts, recommendations, and genre data. Responses are JSON-formatted. Use cases include building music discovery apps, integrating listening stats into projects, creating custom playlists, analyzing trends, or adding scrobbling functionality. It supports read/write operations with API key authentication, and offers options for commercial licensing.

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 architecture
  • JSON response format
  • Music metadata access
  • User listening history & scrobbling
  • Charts & recommendations
  • Read/write operations
  • API key authentication

Frequently Asked Questions

? Is LastFm API free to use?

Yes, it offers a free tier for non-commercial applications with rate limits. Commercial use or higher rate limits require a paid subscription.

? Does it require an API Key?

Yes, all requests need an API key. Write operations (like scrobbling) may also require OAuth 2.0 tokens for user authorization.

? What is the response format?

All endpoints return responses in JSON format, which is easy to parse and integrate into most applications.

Top Alternatives

Spotify Web API Search Google
Deezer API Compare
Apple Music API Search Google
Discogs API Compare

People Also Ask about LastFm

LastFm vs Spotify Web APILastFm vs Deezer APILastFm vs Apple Music APILastFm vs Discogs API LastFm 2025 review

Tool Info

Pricing Freemium
Category Music
Platform Public API

Pros

  • Extensive global music dataset
  • Supports scrobbling (track submission)
  • Well-documented endpoints
  • Non-commercial free tier
  • Covers diverse music trends & charts

Cons

  • Rate limits on free tier
  • Commercial use requires paid plan
  • OAuth needed for some write operations
  • Occasional delays in new music metadata

More Music Tools