Last.fm Widget
Shows your Last.fm listening history, top artists, and top tracks.
Requirements
- A Last.fm account
- A Last.fm API key
Getting an API key
- Go to last.fm/api/account/create
- Fill in the application name (e.g. "Homepage") and description
- Copy the API key (not the shared secret)
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
apiKey | string | — | Last.fm API key |
username | string | — | Last.fm username |
showStats | boolean | true | Show play count and listening stats |
showTopArtists | boolean | false | Show top artists section |
showTopTracks | boolean | false | Show top tracks section |
recentLimit | number | 5 | Number of recent tracks to show |
period | string | "7day" | Period for top artists/tracks: "7day", "1month", "3month", "6month", "12month", "overall" |