# tmdb-java
**Repository Path**: mirrors_chrisbanes/tmdb-java
## Basic Information
- **Project Name**: tmdb-java
- **Description**: A Java wrapper around themoviedb.org API v3 using retrofit2.
- **Primary Language**: Unknown
- **License**: Unlicense
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-08
- **Last Updated**: 2026-02-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
**Pull requests (e.g. support for more API endpoints, bug fixes) are welcome!**
# tmdb-java
A Java wrapper around the [TMDb v3 API](https://developers.themoviedb.org/3) using [retrofit 2](https://square.github.io/retrofit/).
## Usage
Available on Maven Central
Add the following dependency to your Gradle project:
```groovy
implementation 'com.uwetrottmann.tmdb2:tmdb-java:2.1.1'
```
or your Maven project:
```xml
com.uwetrottmann.tmdb2
tmdb-java
2.1.1
```
Use like any other retrofit2 based service. For example:
```java
// Create an instance of the service you wish to use
// you should re-use these
Tmdb tmdb = new Tmdb(API_KEY);
MoviesService moviesService = tmdb.moviesService();
// Call any of the available endpoints
try {
Response response = moviesService
.summary(550)
.execute();
if (response.isSuccessful()) {
Movie movie = response.body();
System.out.println(movie.title + " is awesome!");
}
} catch (Exception e) {
// see execute() javadoc
}
```
See test cases in `src/test/` for more examples and the [retrofit website](https://square.github.io/retrofit/) for configuration options.
### Android
This library ships Java 8 bytecode. This requires Android Gradle Plugin 3.2.x or newer.
## Use Proguard!
You likely will not use every method in this library, so it is probably useful to strip unused ones with Proguard.
Just apply the [Proguard rules for retrofit](https://square.github.io/retrofit/#download).
## License
Created by [Uwe Trottmann](https://uwetrottmann.com).
See full [list of contributors](https://github.com/UweTrottmann/tmdb-java/graphs/contributors).
Except where noted otherwise, released into the [public domain](UNLICENSE).
Do not just copy, make it better.