| Crates.io | TheMovieDB |
| lib.rs | TheMovieDB |
| version | 0.1.0 |
| created_at | 2025-08-07 20:39:48.359221+00 |
| updated_at | 2025-08-07 20:39:48.359221+00 |
| description | A robust and idiomatic Rust API wrapper for The Movie Database (TMDb) v3 API. |
| homepage | https://github.com/Junaid433/TheMovieDB |
| repository | https://github.com/Junaid433/TheMovieDB |
| max_upload_size | |
| id | 1785794 |
| size | 184,278 |
This repository hosts TheMovieDB, a robust and idiomatic Rust API wrapper for The Movie Database (TMDb) v3 API. This library is designed to provide a comprehensive and user-friendly interface for interacting with TMDb's extensive dataset, enabling developers to effortlessly fetch and manage data related to movies, TV shows, people, and more. It is an ideal solution for applications requiring seamless integration with TMDb, such as media management tools, recommendation systems, or data analysis platforms.
TheMovieDB offers extensive coverage of the TMDb API, including:
To integrate TheMovieDB into your Rust project, add the following dependency to your Cargo.toml file:
[dependencies]
TheMovieDB = "0.1.0"
Access to the TMDb API necessitates an API key. If you do not possess one, it can be readily obtained by registering on the official TMDb website.
For secure and convenient access, it is recommended to configure your API key as an environment variable named TMDB_API_KEY:
export TMDB_API_KEY="your_api_key_here"
Below is a fundamental example illustrating how to retrieve movie information using the library:
use TheMovieDB::movies::Movies;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize the Movies API client with a movie ID (e.g., 550 for Fight Club)
let movies = Movies::new(550);
let movie_info = movies.info(None).await;
println!("Movie Info: {:#?}", movie_info);
Ok(())
}
For a comprehensive understanding of the library's capabilities and a wider array of API call demonstrations, please consult the examples/ directory within this repository. Each example showcases specific functionalities and serves as a practical guide for implementation.
Detailed and automatically generated documentation for TheMovieDB is available in the docs/ directory. This documentation provides in-depth information on every module, function, and data structure, serving as the primary reference for developers.
Contributions to TheMovieDB are highly encouraged. If you have suggestions for improvements, new feature implementations, or bug fixes, please feel free to open an issue or submit a pull request. Prior to contributing, kindly review our CONTRIBUTING.md guidelines to ensure adherence to project standards.
This project is distributed under the MIT License. Refer to the LICENSE file for complete licensing details.
For any inquiries, issues, or general communication, please utilize the following channels:
We appreciate your interest in TheMovieDB and look forward to your contributions and feedback. Happy coding! 🎬