Last.fm artist data API, free to test
Test it now, no key
Name an artist and the box answers with Last.fm's public figures for them: how many listeners and plays it has recorded, the main tags, similar artists and a short biography.
The official free source: the Last.fm API
Last.fm has its own API with a free key. We quote nothing from its pages here; read its terms before using the data in a product. Open the official source (linked 26 November 2026).
When the official source is the better choice
Register with Last.fm and use its API when you need users' listening histories, charts by country, albums and tracks, or when your product is built around its data. Its terms say what you may do with it.
When this call is useful
This is handy for a one-off research list where creating and storing another key is more work than the research, and you only need the artist summary.
What comes back, and what to check
The saved answer includes the artist's name, listeners, playcount, an on-tour flag, tags, similar artists, a biography summary, an image address, a MusicBrainz identifier, the artist's page and an errors list, with a note saying listeners means all-time unique listeners rather than monthly ones. That note matters: do not set this number beside a monthly listener figure from a streaming service, because they measure different things. Figures come only from people whose listening is reported to Last.fm. Tags are applied by its users, so treat them as community labels. The MusicBrainz identifier is the safest way to match the same artist in another dataset, since names repeat.
What people do with Last.fm artists
- Add tags and similar artists to a booking shortlist.
- Match artists across datasets with the MusicBrainz identifier instead of the name.
- Compare two acts' all-time listener figures from the same source on the same day.
Questions
Are these monthly listeners?
No. The answer says they are all-time unique listeners.
Does on-tour list the dates?
No, it is only a flag. Check the artist's own pages for dates.
What if two artists share a name?
Check the identifier, tags and biography in the answer to confirm you have the one you meant.
What “free” means here
- Without a key: 5 test runs in 24 hours, counted across the whole site, from the box on this page. A run whose call fails is not counted.
- With a free account: 10,000 welcome credits once you confirm your email. No card. They expire 90 days after they are added.
- This lookup uses 3 credits per call, so the welcome credits cover about 3,333 calls.
- After that it is paid. It is not an unlimited free API.
A real saved answer
Taken 22 November 2026 with long text and long lists shortened, and people lists and abstracts left out.
Show the answer
{
"platform": "lastfm",
"name": "Radiohead",
"listeners": 8525004,
"playcount": 1437305784,
"on_tour": false,
"tags": [
"rock",
"alternative"
],
"similar_artists": [
"Thom Yorke",
"Atoms for Peace"
],
"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...",
"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": []
}Code
curl
curl -X POST https://api.foxapis.com/v1/music/lastfm/artist \
-H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
-d '{"artist":"Radiohead"}'
JavaScript
const res = 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 res.json());
Python
import requests
res = requests.post(
"https://api.foxapis.com/v1/music/lastfm/artist",
headers={"Authorization": "Bearer YOUR_KEY"},
json={"artist":"Radiohead"},
timeout=60,
)
print(res.json())
More free API pages
Lichess player ratings API, free to test · Mastodon post data API, free to test · Free nonprofit check API (IRS data) · Pinterest pin data API, free to test · Free PubMed search API · All of them
Other names belong to their owners. FoxAPIs is not affiliated with or endorsed by them.