Last.fm artist API
One request, one key: POST /v1/music/lastfm/artist. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.
Price
1 credit a call. One call is about $0.0098 and 1,000 calls are about $9.80 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.
Try it free
Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.
{
"artist": "Radiohead"
}
What it returns
| Field | Type | Value in the sample |
|---|---|---|
platform | string | lastfm |
name | string | Radiohead |
listeners | number | 8522662 |
playcount | number | 1436878655 |
on_tour | boolean | false |
tags | list | ["rock","alternative","alternative rock"] |
similar_artists | list | ["Thom Yorke","Atoms for Peace","Muse"] |
bio_summary | string | Radiohead is an English rock band formed in Abingdon, Oxfordshire, in 1985. The band consists of Thom Yorke... |
image_url | string | https://lastfm-img.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png |
mbid | string | a74b1b7f-71a5-4011-9441-d0b5e4122711 |
lastfm_url | string | https://www.last.fm/music/Radiohead |
listeners_note | string | Total unique listeners (all-time cumulative, not monthly) |
credits_used | number | 1 |
latency_ms | number | 163 |
Sample response (20 November 2026)
{
"platform": "lastfm",
"name": "Radiohead",
"listeners": 8522662,
"playcount": 1436878655,
"on_tour": false,
"tags": [
"rock",
"alternative",
"alternative rock"
],
"similar_artists": [
"Thom Yorke",
"Atoms for Peace",
"Muse"
],
"bio_summary": "Radiohead is an English rock band formed in Abingdon, Oxfordshire, in 1985. The band consists of Thom Yorke (vocals, guitar, piano, keyboards); brothers Jonny Greenwood (guitar, keyboards, other instruments) and Colin Greenwood (bass); Ed O'Brien (guitar, backing vocals); and Philip Selway (drums, p...",
"image_url": "https://lastfm-img.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png",
"mbid": "a74b1b7f-71a5-4011-9441-d0b5e4122711",
"lastfm_url": "https://www.last.fm/music/Radiohead",
"listeners_note": "Total unique listeners (all-time cumulative, not monthly)",
"errors": [],
"credits_used": 1,
"latency_ms": 163
}
Measured on that call: 700 ms.
Code
curl -X POST https://api.foxapis.com/v1/music/lastfm/artist \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"artist":"Radiohead"}'n8n (HTTP Request node: paste it into a workflow)
{
"nodes": [
{
"name": "Last.fm artist",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
0,
0
],
"parameters": {
"method": "POST",
"url": "https://api.foxapis.com/v1/music/lastfm/artist",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer YOUR_KEY"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"artist\":\"Radiohead\"}"
}
}
],
"connections": {}
}Assistants (Claude, ChatGPT, Cursor)
Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.
claude mcp add --transport http foxapis https://foxapis.com/mcp \ --header "Authorization: Bearer YOUR_KEY"
Errors and limits
- 401: the key is missing or wrong.
- 402: out of credits; top up on the pricing page.
- 422: the input does not match; the answer names the field.
- 429: too many calls too fast; wait a moment and try again.
- 503: the source did not answer; nothing is charged. Live state: status.
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keySame category: Music · all APIs
How we calculate
- Price of one call and of 1,000 calls: The credits per call times the smallest paid plan's price per credit (its monthly price divided by its monthly credits), times 1,000 for the larger figure.
Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.