Last.fm API

Music scrobbling and discovery

🔑 Auth: apiKey 🔒 HTTPS: Yes 🌐 CORS: Enabled

Live Technical Metrics

Pre-calculated · updated every 20 min
Server-measured technical metrics for the Last.fm API
Uptime Status ⬜ Unknown — not yet probed
Server Latency N/A
Hosting Server Not disclosed
Content-Type Not disclosed
Cache-Control Not set
CORS Support ✅ Enabled — safe for browser fetch()
Authentication ⚠️ Requires apiKey — obtain credentials from the official documentation
Category Music

Quick Integration Code

⚠️ Auth: apiKey
// ⚠️  This API requires apiKey authentication
// Add your credentials to the headers below
fetch("https://www.last.fm/api")
  .then(response => {
    if (!response.ok) throw new Error(`HTTP ${response.status}`);
    return response.json();
  })
  .then(data => console.log(data))
  .catch(error => console.error("Request failed:", error));
# ⚠️  This API requires apiKey authentication
# Add your credentials to the headers dict below
import requests

url = "https://www.last.fm/api"
headers = {
    "Accept": "application/json",
    # "Authorization": "Bearer YOUR_TOKEN_HERE",
}

response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()
data = response.json()
print(data)
curl -X GET "https://www.last.fm/api" \
  -H "Authorization: Bearer YOUR_TOKEN_HERE" \
  -H "Accept: application/json" \
  -H "User-Agent: MyApp/1.0" \
  --max-time 10 \
  --silent | python3 -m json.tool

Sample JSON Response — Music

Music

  "id" "11dFghVXANMlKmJXsNCbNl"
  "type" "track"
  "name" "Bad Guy"
  "artists" 
    
      "id" "6qqNVTkY8uBg9cP3Jd7DAH"
      "name" "Billie Eilish"
    
  
  "album" 
    "name" "WHEN WE ALL FALL ASLEEP, WHERE DO WE GO?"
  
  "duration_ms" 194088
  "popularity" 85
  "explicit" false
  "external_urls" 
    "spotify" "https://open.spotify.com/track/11dFghVXANMlKmJXsNCbNl"