#radio #tokio #web #api-bindings #api

tunein

A simple client to fetch radio stations from TuneIn

3 releases

0.1.2 Feb 22, 2023
0.1.1 Feb 22, 2023
0.1.0 Feb 21, 2023

#55 in #radio

Download history 5/week @ 2024-02-19 71/week @ 2024-02-26 5/week @ 2024-03-04 5/week @ 2024-03-11 14/week @ 2024-03-18 1/week @ 2024-03-25 48/week @ 2024-04-01 61/week @ 2024-04-15

112 downloads per month
Used in tunein-cli

MIT license

25KB
253 lines

TuneIn Rust Client Library

License: MIT

This is a Rust client library for the TuneIn Radio API.

🚚 Installation

Add the following to your Cargo.toml:

[dependencies]
tunein = "0.1"

🚀 Usage

Search for a station:

use tunein::TuneInClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = TuneInClient::new();
    let results = client.search("alternativeradio.us").await?;
    println!("{}", serde_json::to_string_pretty(&results)?);
    Ok(())
}

See the examples directory for more examples.

✨ Features

  • Search
  • Browse categories
  • Browse stations by category

📝 License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Dependencies

~20–34MB
~638K SLoC