Home · APIs · Music · Last.fm artist

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

FieldTypeValue in the sample
platformstringlastfm
namestringRadiohead
listenersnumber8522662
playcountnumber1436878655
on_tourbooleanfalse
tagslist["rock","alternative","alternative rock"]
similar_artistslist["Thom Yorke","Atoms for Peace","Muse"]
bio_summarystringRadiohead is an English rock band formed in Abingdon, Oxfordshire, in 1985. The band consists of Thom Yorke...
image_urlstringhttps://lastfm-img.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png
mbidstringa74b1b7f-71a5-4011-9441-d0b5e4122711
lastfm_urlstringhttps://www.last.fm/music/Radiohead
listeners_notestringTotal unique listeners (all-time cumulative, not monthly)
credits_usednumber1
latency_msnumber163

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"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/music/lastfm/artist",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"artist":"Radiohead"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/music/lastfm/artist", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"artist":"Radiohead"}),
});
console.log(await r.json());

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

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

Same category: Music · all APIs

How we calculate

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.