Max Glenister

Software & Servers • 5 min read Plain text

Last.fm's API rug pull, and the now-playing service I built instead

From today, Last.fm is putting most of its API behind a Pro subscription. That includes user.getRecentTracks, which is what the track card on my /now page has been using.

What’s changing

Last.fm announced on their forums on 18th November that whoever owns an API key needs Last.fm Pro. People using someone else’s app are fine, only the developer holding the key is affected, but thirteen days’ notice isn’t much for a change that breaks existing keys.

A week later they backed off part of it, and apologised for the short notice. Scrobbling (track.scrobble, track.updateNowPlaying, track.removeNowPlaying and the auth calls) stays free for existing keys. Everything else needs Pro, as does creating a new key. That includes user.getRecentTracks, so reading my own plays back now costs money.

I first found out from Dominik Schwind’s blog. Last.fm posted it on their forums, on Reddit and maybe elsewhere, but sent me nothing directly, and I never had a reason to join their forum. An email would have been nice, given it breaks the one feature I use.

Their reason, as Cory Dransfeldt quotes it, is that “over ten thousand API keys are registered every month, many of which appear to be for data scraping purposes that don’t benefit our community”. Dominik reckons it’s a sign of the times, with AI scrapers and vibe-coded apps pushing APIs behind paywalls. Fair enough, though a personal key polling once an hour isn’t what’s hammering them.

How I was using Last.fm

My Last.fm profile said I’ve been scrobbling since 24th August 2004. I mostly stopped using it years ago. I started again at Christmas 2025, when I was bored and added a Last.fm card to the /now page using GitHub Actions. That later led to a post about the commit noise it caused.

The /now page was built by a GitHub Actions workflow every hour, and on every push. Each run made at least one user.getRecentTracks request to fill the card, all from one API key. That’s 24 a day on paper, or roughly 8,000 from January to November. GitHub only has around 4,500 of those runs on record, peaking at about 700 in March, so the real number sits somewhere between the two.

Last.fm has never published a daily limit that I can find, only a warning that accounts can be suspended for several calls a second or excessive calls. I was nowhere near that, and it now needs a subscription anyway.

If the fetch failed, the card quietly disappeared. That fallback was written for outages, and it would have covered this too. From 1st December the card would have vanished and nothing would have complained.

Doing it myself

I could have paid for Pro at $4.99 a month and it would have fixed this straight away, but I’d have been paying to read back data I put in myself, for free, over twenty years. It’s the usual story with free APIs. Twitter and Reddit went the same way.

There’s no self-serve official way to export it either. I got mine out with a third-party exporter while I still could, and it came to about 16,000 scrobbles in a 13MB JSON file. It pages through the API, which is now the paid part. It’s going in the archive, and I don’t have much use for it beyond that.

What bugs me is that in May, when Last.fm announced it was independent again, the FAQ covered the API.

I build tools using the Last.fm API, should I be concerned?

No. API functionality continues as normal. We value the developer community and will continue supporting the ecosystem around Last.fm.

Six months later, the read side needs a subscription. I don’t think they lied, plans change and independent companies have bills, but I’d rather not depend on it.

I’ve built a replacement, now-playing. It’s a small Node service on my VPS that polls Spotify once a minute and serves what I’m playing as JSON at /recent.json. It’s one script with no dependencies or database, and Apache proxies that one path. It’s connected to my Spotify account, so my desktop client, phone, and Google speakers all contribute. The /now page fetches the JSON at build time, as it did with Last.fm.

It isn’t a full scrobbler. Spotify only returns my last 50 plays, and it seems to leave out very short plays and anything from a private session. That’s enough for “what am I listening to right now”, but not for years of history. For a proper scrobbler, Cory’s post lists ListenBrainz, the self-hosted Koito and teal.fm, which he says hasn’t quite launched.

It still depends on Spotify, but behind a service I run, so if Spotify changes its mind only the poller needs replacing. Its API already needs a Premium subscription, which I pay for, and I’ll be watching to see whether they tighten it further.

I tried unlinking Last.fm from Spotify, but scrobbles kept arriving a day later, and I couldn’t work out what was still sending them. So I’ve deleted my account.

  • Blog & IndieWeb · shares #indieweb
    Enriching webmentions from third-party platforms

    I keep finding new gaps in my webmention implementation. Mentions coming in from Bluesky, Lemmy and Lobsters were showing up with no author at all, just a blank avatar and an empty name. Reddit and Hacker News bookmarks fared a bit better, with a username attached, but got flattened into a generic “bookmarked” icon with no indication of where the post had actually been shared. Lobsters mentions also carried the wrong published date. None of these felt like they were pulling their weight compared to a proper webmention from a blog or Mastodon.

    June 2026 • 8 min read
  • Blog & IndieWeb · shares #indieweb
    Sending webmentions on deploy

    I’ve spent a fair bit of time on the receiving end of webmentions, from adding support for them in the first place through to fetching them at build time and rendering them server-side so the discussion section doesn’t flicker in over JS. What I’d never actually done was send the other half. Every link I’ve ever made out to another IndieWeb site has just sat there, silently not telling anyone I’d linked to them.

    June 2026 • 3 min read
  • Life · shares #indieweb
    How I take my coffee

    My default for making coffee for two is a cafetière. French press if you insist. It requires almost no thought, produces a consistent result, and has no moving parts to break. When I’ve got a bit more time and want a cleaner cup for two or more, I’ll reach for a Bodum pour-over instead. When it’s just me, I’ve been using a Clever Dripper more lately (it suits the days where I want slightly more control without committing to the full V60 ritual). The Hario V60 was my main single-cup pour-over for a long time before that.

    June 2026 • 3 min read

Discussion

No interactions yet

Join the conversation

Reply from your own site with a Webmention (how?).

Webmentions last fetched 1 December 2026, 10:28