Migrating to Rocksky Scrobble API
Rocksky offers a fully compatible implementation of the Last.fm Audioscrobbler API ā so you can seamlessly migrate your scrobbling apps or integrations to Rocksky by simply changing the API endpoint and credentials.Base URL#
Replace the Last.fm endpoint:https://ws.audioscrobbler.com/2.0
With the Rocksky scrobble endpoint:https://audioscrobbler.rocksky.app/2.0
Authentication#
sk
: Your Rocksky session key (obtained after user authentication rocksky login
)
Legacy Last.fm API Compatibility#
Rocksky also supports older Last.fm clients using the legacy Audioscrobbler protocol (pre-2.0). You can use these legacy configurations in clients such as Deadbeef or older music players:Legacy API Config:#
ā¹ļø Note: Rocksky will also try to normalize songs metadata. If it cannot find a matching track, it will skip the scrobble.Example Scrobble Request#
Method: POST
URL: https://audioscrobbler.rocksky.app/2.0
Headers: Content-Type: application/x-www-form-urlencoded
Body (as x-www-form-urlencoded
):Parameter | Example Value |
---|
method | track.scrobble |
api_key | YOUR_API_KEY |
sk | YOUR_SESSION_KEY |
artist[0] | Radiohead |
track[0] | Karma Police |
timestamp[0] | 1744579159 |
api_sig | 532b7492411fdfcd79639b548b5ee8a8 |
format | json |
Generating api_sig
#
To compute the signature:1.
Sort all parameters (excluding api_sig and format) by key.
2.
Concatenate key-value pairs (key1value1key2value2...).
3.
Append your shared secret to the concatenated string.
Migrating Your App#
To switch from Last.fm to Rocksky:2.
Update your API key and session key (from rocksky login
).
3.
Use the same payload format and signature method.
Why Switch to Rocksky?#
š Open Scrobble Infrastructure
š Modern analytics and detailed stats
š Built on top of AT Protocol for portability
š§ Compatible with existing Last.fm tools Modified atĀ 2025-05-23 23:00:14