Fetch your history from last.fm API, and create SVG badge.
Due to the API restrictions of last.fm, you need to deploy to Vercel yourself.
- Create last.fm API Account and get API Key and Username,
- Configure
LASTFM_API_KEY
andLASTFM_USER
for Vercel environmnet variables.
https://<your-vercel-app>.vercel.app/api?period=1month
- period
overall
|7day
|1month
|3month
|6month
|12month
- default:
1month
- https://www.last.fm/api/show/user.getTopArtists