{"id":49096889,"url":"https://github.com/m0rf30/opensubsonic-rs","last_synced_at":"2026-04-20T21:01:37.516Z","repository":{"id":338285984,"uuid":"1157357108","full_name":"M0Rf30/opensubsonic-rs","owner":"M0Rf30","description":"Complete async Rust client for the OpenSubsonic/Subsonic REST API","archived":false,"fork":false,"pushed_at":"2026-02-14T00:37:19.000Z","size":64,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T01:17:20.707Z","etag":null,"topics":["api-client","async","music","navidrome","opensubsonic","rust","streaming","subsonic"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/opensubsonic","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/M0Rf30.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-13T18:16:20.000Z","updated_at":"2026-03-25T02:36:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/M0Rf30/opensubsonic-rs","commit_stats":null,"previous_names":["m0rf30/opensubsonic-rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/M0Rf30/opensubsonic-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0Rf30%2Fopensubsonic-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0Rf30%2Fopensubsonic-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0Rf30%2Fopensubsonic-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0Rf30%2Fopensubsonic-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/M0Rf30","download_url":"https://codeload.github.com/M0Rf30/opensubsonic-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/M0Rf30%2Fopensubsonic-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32065584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-client","async","music","navidrome","opensubsonic","rust","streaming","subsonic"],"created_at":"2026-04-20T21:01:36.390Z","updated_at":"2026-04-20T21:01:37.489Z","avatar_url":"https://github.com/M0Rf30.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opensubsonic-rs\n\n[![Crates.io](https://img.shields.io/crates/v/opensubsonic.svg)](https://crates.io/crates/opensubsonic)\n[![Docs.rs](https://docs.rs/opensubsonic/badge.svg)](https://docs.rs/opensubsonic)\n[![CI](https://github.com/M0Rf30/opensubsonic-rs/workflows/CI/badge.svg)](https://github.com/M0Rf30/opensubsonic-rs/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nComplete async Rust client for the [OpenSubsonic](https://opensubsonic.netlify.app/) / Subsonic REST API.\n\nSupports **Subsonic API v1.16.1** and **OpenSubsonic extensions**. Works with [Navidrome](https://www.navidrome.org/), [Gonic](https://github.com/sentriz/gonic), [Ampache](https://ampache.org/), and any other Subsonic-compatible server.\n\n## Quick start\n\n```rust\nuse opensubsonic::{Client, Auth};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), opensubsonic::Error\u003e {\n    let client = Client::new(\n        \"https://music.example.com\",\n        Auth::token(\"admin\", \"password\"),\n    )?;\n\n    // Verify connectivity.\n    client.ping().await?;\n\n    // Browse artists.\n    let artists = client.get_artists(None).await?;\n    for index in \u0026artists.index {\n        for artist in \u0026index.artist {\n            println!(\"{}\", artist.name);\n        }\n    }\n\n    // Search for songs.\n    let results = client.search3(\"bohemian\", None, None, None, None, None, None, None).await?;\n    for song in \u0026results.song {\n        println!(\"{} - {}\", song.artist.as_deref().unwrap_or(\"?\"), song.title);\n    }\n\n    // Get a streaming URL (no HTTP request, just builds the URL).\n    let url = client.stream_url(\"song-id-123\", None, None)?;\n    println!(\"Stream: {url}\");\n\n    Ok(())\n}\n```\n\n## Authentication\n\nThree methods are supported:\n\n```rust\n// API key (OpenSubsonic extension) — sends apiKey parameter\nlet auth = Auth::api_key(\"your-api-key\");\n\n// Token-based (recommended) — sends MD5(password + salt) + salt\nlet auth = Auth::token(\"admin\", \"my-password\");\n\n// Plain text (legacy) — sends hex-encoded password\nlet auth = Auth::plain(\"admin\", \"my-password\");\n```\n\n## API coverage\n\nAll ~80 endpoints from Subsonic API v1.16.1 are implemented, plus OpenSubsonic extensions:\n\n| Category | Endpoints |\n|---|---|\n| **System** | `ping`, `getLicense`, `getOpenSubsonicExtensions`, `tokenInfo` |\n| **Browsing** | `getMusicFolders`, `getIndexes`, `getMusicDirectory`, `getGenres`, `getArtists`, `getArtist`, `getAlbum`, `getSong`, `getVideos`, `getArtistInfo`/`2`, `getAlbumInfo`/`2`, `getSimilarSongs`/`2`, `getTopSongs` |\n| **Lists** | `getAlbumList`/`2`, `getRandomSongs`, `getSongsByGenre`, `getNowPlaying`, `getStarred`/`2` |\n| **Searching** | `search`, `search2`, `search3` |\n| **Playlists** | `getPlaylists`, `getPlaylist`, `createPlaylist`, `updatePlaylist`, `deletePlaylist` |\n| **Media Retrieval** | `stream`, `download`, `hls`, `getCaptions`, `getCoverArt`, `getLyrics`, `getLyricsBySongId`, `getAvatar` |\n| **Media Annotation** | `star`, `unstar`, `setRating`, `scrobble` |\n| **Sharing** | `getShares`, `createShare`, `updateShare`, `deleteShare` |\n| **Podcast** | `getPodcasts`, `getNewestPodcasts`, `getPodcastEpisode`, `refreshPodcasts`, `createPodcastChannel`, `deletePodcastChannel`, `deletePodcastEpisode`, `downloadPodcastEpisode` |\n| **Jukebox** | `jukeboxControl` |\n| **Internet Radio** | `getInternetRadioStations`, `createInternetRadioStation`, `updateInternetRadioStation`, `deleteInternetRadioStation` |\n| **Chat** | `getChatMessages`, `addChatMessage` |\n| **User Management** | `getUser`, `getUsers`, `createUser`, `updateUser`, `deleteUser`, `changePassword` |\n| **Bookmarks** | `getBookmarks`, `createBookmark`, `deleteBookmark`, `getPlayQueue`, `savePlayQueue`, `getPlayQueueByIndex`, `savePlayQueueByIndex` |\n| **Scanning** | `getScanStatus`, `startScan` |\n| **Transcoding** | `getTranscodeDecision`, `getTranscodeStream` *(OpenSubsonic)* |\n\n## Builder options\n\n```rust\nlet client = Client::new(\"https://music.example.com\", Auth::token(\"admin\", \"pass\"))?\n    .with_client_name(\"my-app\")        // Custom client identifier (default: \"opensubsonic-rs\")\n    .with_api_version(\"1.15.0\")        // Override protocol version (default: \"1.16.1\")\n    .with_http_client(custom_reqwest);  // Inject a custom reqwest::Client\n```\n\n## URL builders\n\nSome methods build URLs without making HTTP requests, useful for passing to audio players:\n\n```rust\nlet stream_url = client.stream_url(\"song-id\", None, None)?;\nlet cover_url = client.cover_art_url(\"cover-id\", Some(300))?;\nlet hls_url = client.hls_url(\"video-id\", None, None)?;\n```\n\n## Dependencies\n\n- [reqwest](https://crates.io/crates/reqwest) 0.13 (async HTTP, rustls TLS)\n- [serde](https://crates.io/crates/serde) / serde_json (JSON serialization)\n- [tokio](https://crates.io/crates/tokio) (async runtime, dev-dependency)\n\nMinimum supported Rust version: **1.85** (edition 2024).\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) or [MIT License](http://opensource.org/licenses/MIT) at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0rf30%2Fopensubsonic-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0rf30%2Fopensubsonic-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0rf30%2Fopensubsonic-rs/lists"}