#api #lastfm #last-fm #scrobble


Last.fm Scrobble library for Rust

11 releases

0.9.2 Apr 26, 2019
0.9.1 Nov 20, 2017
0.3.1 Oct 3, 2017
0.3.0 Sep 26, 2017
0.1.2 Feb 25, 2017

#30 in Multimedia

Download history 16/week @ 2019-01-11 2/week @ 2019-01-18 2/week @ 2019-01-25 54/week @ 2019-02-01 1/week @ 2019-02-08 6/week @ 2019-02-22 23/week @ 2019-03-01 45/week @ 2019-03-08 1/week @ 2019-03-15 54/week @ 2019-03-22 11/week @ 2019-04-05 1/week @ 2019-04-12 10/week @ 2019-04-19

70 downloads per month
Used in 1 crate

MIT license

487 lines


Latest Version Build Status

rustfm-scrobble is a Last.fm Scrobble API 2.0 library for Rust. It allows easy acccess to the "scrobble" and "now playing" notification endpoints through a simple Rust API.


rustfm-scrobble exposes a single struct: Scrobbler. Use Scrobbler::new() with your API key and API secret to build a new Scrobbler. Call authenticate() on your Scrobbler with the username & password of the user to record scrobbles against (this matches the UX of most popular clients like Spotify). Once the Scrobbler is authenticated, call now_playing() and scrobble() to update the user's now playing track or log a new scrobbled track. Note that rustfm-scrobble does nothing to enforce Last.fm's scrobble rules , this logic must be implemented by the client program.


rustfm-scrobble is beta quality. It is feature complete (authentication, now playing and scrobbles all work correctly), however remains a work in progress and some public API modifications are expected.


MIT license, see ./LICENSE.


~409K SLoC