Displays the last played song scrobbled on Last.fm for a user.
![](https://badges.lastfm.workers.dev/last-played?user=rj)
Badges are rendered using Shields.io service and allow customizations as documented under Styles
section at Shields.io.
![](https://badges.lastfm.workers.dev/last-played?user=rj&style=for-the-badge)
![](https://badges.lastfm.workers.dev/last-played?user=rj&color=blue)
![](https://badges.lastfm.workers.dev/last-played?user=rj&label=Last%20Song)
I use this service for my profile at github.com. Currently, the service is hosted on a free tier of Cloudflare Workers and limited at 100K requests per day. If you need a stable service, please consider hosting it under your account.
Create a secret LASTFM_API_KEY
for the Cloudflare Worker to use the LastFM APIs.
- Steps for getting an API key is available at last.fm.
- Steps for creating a secret is available at developers.cloudflare.com.
Head over to the issues tab at github.com to report a bug or suggest an improvement. Feel free to contribute to the code or documentation by creating a pull request.
If you find the project interesting or helpful, please consider sponsoring it at github.com.