Last.fm

Intro

The Last.fm API is used to track your music listening history. It is recommended over Spotify because you can scrobble tracks from multiple services.

Data points

The following data points are available for this integration:

Data pointDescription
historyListening history
top-albumsTop albums
top-tracksTop tracks
top-artistsTop artists
.stethoscoperc.yml
integrations:
last-fm:
frequency: "daily"
history: true
top-albums: true
top-tracks: true
top-artists: true

If you want to enable all data points, you can simply use all instead:

.stethoscoperc.yml
integrations:
last-fm:
frequency: "daily"
all: true

Authentication

You'll have to create an API account on https://www.last.fm/api/account/create. Since we don't require any tokens, you can add the default URL http://localhost:3000/callback under "Callback URL" in your Last.fm API account. When completed, you'll receive an API key and a shared secret.

Environment variables

Environment variableDescription
LASTFM_API_KEYAPI key
LASTFM_SHARED_SECRETShared secret
LASTFM_USERNAMEYour Last.fm username
Last.fm