tmdb-api

Crates.iotmdb-api
lib.rstmdb-api
version1.0.0-alpha.4
created_at2022-10-15 10:51:25.322983+00
updated_at2025-06-18 18:31:45.576397+00
descriptionYet another TMDB client. This one is using async methods.
homepage
repositoryhttps://github.com/jdrouet/tmdb-api
max_upload_size
id688899
size1,996,828
Jérémie Drouet (jdrouet)

documentation

README

Rust client for The Movie DB API

This is yet another client for TMDB, but it supports async functions.

Installing

cargo add tmdb-api

Usage

use tmdb_api::client::Client;
use tmdb_api::client::reqwest::Client as ReqwestClient;

#[tokio::main]
async fn main() {
    let secret = std::env::var("TMDB_TOKEN_V3").unwrap();
    let client = Client::<ReqwestClient>::new(secret);
    let res = client.search_tvshows("simpsons", &Default::default()).await.unwrap();
    let item = res.results.first().unwrap();
    println!("TVShow found: {}", item.inner.name);
}

Features

Running the tests

cargo test

If you want to run some integration tests, just export a TMDB_TOKEN_V3 environment variable and run

cargo test --features integration
Commit count: 185

cargo fmt