Last.fm REST APIs
SVG charts and TRMNL displays for your listening history.
Live Preview
Endpoints
📊
SVG
Last.fm Charts
/lastfm-chart
Weekly top artists or albums with dynamic gradients and your avatar.
🎵
SVG
Last Played Track
/lastfm-last-played
Real-time display of your currently playing track with album art.
🖼️
TRMNL
Album Grid
/trmnl-lastfm-grid
2x5 grid of top 10 album covers optimized for e-ink displays.
📱
TRMNL
Last Played
/trmnl-lastfm-last-played
Large album artwork with track details for e-ink displays.
📈
TRMNL
Profile Stats
/trmnl-lastfm-stats
Profile statistics and top artists for e-ink displays.
Quick Start
Add your Last.fm username to any endpoint:
https://www.russ.rest/lastfm-chart?artists&username=YourUsername
If no username is provided, the default user (RussMckendrick) is used.
Built With
☁️
Cloudflare
Workers
📘
TypeScript
Strict Mode
🎧
Last.fm
API
🖥️
TRMNL
Framework v2