#rest #client #api-client #api-access #api-bindings

letterboxd

Letterboxd API provides access to data on the Letterboxd.com website

8 releases

0.4.0 Mar 15, 2024
0.3.1 Sep 13, 2021
0.3.0 Jan 16, 2021
0.2.2 Jan 10, 2020
0.1.1 Sep 21, 2017

#367 in Web programming

Download history 4/week @ 2024-02-26 129/week @ 2024-03-11 19/week @ 2024-03-18 42/week @ 2024-04-01

190 downloads per month

MIT/Apache

140KB
2K SLoC

Letterboxd API for Rust

crates-badge docs-badge license-badge ci-badge

Letterboxd API client for accessing the data on the Letterboxd.com website in Rust.

Example

#[tokio::main]
async fn main() -> letterboxd::Result<()> {
    let api_key_pair = letterboxd::ApiKeyPair::from_env().unwrap();
    let client = letterboxd::Client::new(api_key_pair);

    let req = letterboxd::SearchRequest {
        input: "Fight Club".to_string(),
        per_page: Some(1),
        ..Default::default()
    };
    let resp = client.search(&req).await?;
    println!("{:?}", resp);

    Ok(())
}

For more examples cf. tests/integration.rs.

Note: Not all APIs are implemented. Feel free to contribute missing implementation, usually these are very straight forward.

License

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this document by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~10–23MB
~353K SLoC