Agent skill · writing content · sundial-org

lastfm

Access Last.fm listening history, music stats, and discovery. Query recent tracks, top artists/albums/tracks, loved tracks, similar artists, and global charts.

Why this skill is useful

Provides specific API commands and parameters for accessing Last.fm data that the AI wouldn't reliably generate on its own.

What it needs

Requires last.fm account access. About 2k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Last.fm API Skill Access Last.fm listening history, music stats, and discovery. Configuration Required env vars (add to your shell profile or optionally ~/.clawdbot/.env): LASTFMAPIKEY — your Last.fm API key (get one here) LASTFMUSER — your Last.fm username Base URL: http://ws.audioscrobbler.com/2.0/ Docs: https://lastfm-docs.github.io/api-docs/ Example Output Here's what 17+ years of scrobbling looks like: Quick Reference All requests use GET with these base params: User Endpoints Recent Tracks (what's playing / recently played) First track with @attr.nowplaying=true is currently playing Returns: artist, track name, album, timestamp, images User Info (profile stats) Returns: playcount, artistcount, trackcount, albumcount, registered date Top Artists period: overall 7day 1month 3month 6month 12month Top Albums Top Tracks Loved Tracks Weekly Charts Artist/Track/Album Info Artist Info Adding username includes user's playcount for that artist Similar Artists Artist Top Tracks Track Info Similar Tracks Album Info Search Search Artists Search Tracks Search Albums Charts (Global) Tags Useful jq Filters For JSON processing, see the jq skill on ClawdHub. Notes No auth needed for read-only endpoints (just API key) Rate limit: be reasonable, no hard limit documented URL-encode artist/track/album names (spaces → + or %20) Images come in sizes: small, medium, large, extralarge

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/lastfm

View the source on GitHub

Browse the @skills marketplace