{"id":14110261,"url":"https://github.com/dmfutcher/rustfm-scrobble","last_synced_at":"2026-03-11T03:03:56.135Z","repository":{"id":55678430,"uuid":"77233746","full_name":"dmfutcher/rustfm-scrobble","owner":"dmfutcher","description":"Last.fm Scrobble API for Rust","archived":false,"fork":false,"pushed_at":"2022-03-01T15:37:14.000Z","size":131,"stargazers_count":37,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-11T18:40:13.143Z","etag":null,"topics":["hacktoberfest","last-fm","lastfm","music","rust","scrobble"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmfutcher.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-23T15:25:25.000Z","updated_at":"2025-12-13T08:44:05.000Z","dependencies_parsed_at":"2022-08-15T06:20:25.570Z","dependency_job_id":null,"html_url":"https://github.com/dmfutcher/rustfm-scrobble","commit_stats":null,"previous_names":["bobbo/rustfm-scrobble"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/dmfutcher/rustfm-scrobble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Frustfm-scrobble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Frustfm-scrobble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Frustfm-scrobble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Frustfm-scrobble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmfutcher","download_url":"https://codeload.github.com/dmfutcher/rustfm-scrobble/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmfutcher%2Frustfm-scrobble/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30368622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","last-fm","lastfm","music","rust","scrobble"],"created_at":"2024-08-14T10:02:45.046Z","updated_at":"2026-03-11T03:03:56.100Z","avatar_url":"https://github.com/dmfutcher.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"rustfm-scrobble\n===============\n\n[![Latest Version](https://img.shields.io/crates/v/rustfm-scrobble.svg)](https://crates.io/crates/rustfm-scrobble)\n[![Rust](https://github.com/bobbo/rustfm-scrobble/workflows/Rust/badge.svg?branch=master\u0026event=push)](https://github.com/bobbo/rustfm-scrobble/actions)\n\n*rustfm-scrobble* is a [Last.fm Scrobble API 2.0](http://www.last.fm/api/scrobbling) crate for Rust. It allows easy \nacccess to the \"scrobble\" and \"now playing\" notification endpoints through a simple Rust API. It can be used to record\nsong-plays from music players, build analog scrobbling tools similar to [VinylScrobbler](https://vinylscrobbler.com/)\nor work with IoT Devices. It was initially built to implement a \n[Spotify scrobbling service](https://github.com/bobbo/spotify-connect-scrobbler) using the \n[Spotify Connect Protocol](https://www.spotify.com/uk/connect/) when the \n[Alexa Spotify client](https://www.spotify.com/uk/amazonalexa/) did not support scrobbling plays to Last.fm.\n\n## Features\n\n* Scrobble songs to Last.fm ('scrobble' API endpoint)\n* Publish now-playing song to Last.fm ('now playing' API endpoint)\n* Batch scrobble support in `Scrobbler::scrobble_batch` and `ScrobbleBatch`\n* Multiple authentication flows to gain permissions to publish to Last.fm user profile\n    * Store a pre-authenticated session key \u0026 throw away secret data after initial authentication\n* Simple error handling; each API operation returns a `Result` with a simple `Error` type on failure\n* Unit tested\n\n## Install\nAdd *rustfm-scrobble* to your **Cargo.toml**.\n\n ```\n [dependencies]\n rustfm-scrobble=\"1.1\"\n ```\n\n## Usage\n\n* [API Documentation](https://docs.rs/rustfm-scrobble)\n* [Code Examples](https://github.com/bobbo/rustfm-scrobble/tree/master/examples)\n    * Example now-playing \u0026 scrobbling client\n    * Example batch scrobbling client\n    * `cargo build --examples`\n    * `./target/debug/examples/example`\n* Build: `cargo build`\n* Run Unit tests: `cargo test`\n\n```rust\nextern crate rustfm_scrobble;\nuse rustfm_scrobble::{Scrobble, Scrobbler};\n\nlet username = \"last-fm-username\";\nlet password = \"last-fm-password\";\nlet api_key = \"client-api-key\";\nlet api_secret = \"client-api-secret\";\n \nlet mut scrobbler = Scrobbler::new(api_key, api_secret);\nscrobbler.authenticate_with_password(username, password);\n \nlet song = Scrobble::new(\"Example Artist\", \"Example Song\", \"Example Album\");\nscrobbler.scrobble(song);\n```\n\n### In Use\n\n*rustfm-scrobble* is used in several projects including [polaris](https://github.com/agersant/polaris), [connectr](https://github.com/mrmekon/connectr),\n[rescrobbled](https://github.com/InputUsername/rescrobbled) and [rb-scrobbler](https://github.com/Jeselnik/rb-scrobbler).\n\n\n## Status\n\nThe API is stable \u0026 backwards compatibility will be guaranteed for all 1.0 releases.\n\n\n## License\n\nMIT license, see `./LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfutcher%2Frustfm-scrobble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmfutcher%2Frustfm-scrobble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmfutcher%2Frustfm-scrobble/lists"}