Movie API documentation
Movie API documentation for amodb, a paid API that keeps TMDB v3 and OMDb paths and JSON. Start with the quickstart, then read keys, rate limits, errors, languages and images. One 32 hex key works on https://api.amodb.dev/3 and /omdb/, at 20, 40 or 120 requests per minute.
curl "https://api.amodb.dev/3/movie/550?language=en-US" \
-H "Authorization: Bearer $AMODB_KEY"const res = await fetch("https://api.amodb.dev/3/movie/550?language=en-US", {
headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` },
});
const data = await res.json();import os
import requests
res = requests.get(
"https://api.amodb.dev/3/movie/550",
params={"language": "en-US"},
headers={"Authorization": f"Bearer {os.environ['AMODB_KEY']}"},
timeout=10,
)
data = res.json()<?php
$ch = curl_init("https://api.amodb.dev/3/movie/550?language=en-US");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("AMODB_KEY")],
]);
$data = json_decode(curl_exec($ch), true);req, _ := http.NewRequest("GET", "https://api.amodb.dev/3/movie/550?language=en-US", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("AMODB_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var data map[string]any
json.NewDecoder(res.Body).Decode(&data)This is the movie API documentation for amodb, a paid movie and TV API that keeps the TMDB v3 read paths, query parameters and JSON and adds an OMDb compatible endpoint. It is TMDB compatible API documentation for amodb, not TMDB's own: it covers the amodb base URL, key, limits, extensions and gaps. One 32 character key works on every host, and your plan sets the rate at 20, 40 or 120 requests per minute. To send a first call in about 2 minutes, open the quickstart.
Which base URL does the API use?
| Use | Base URL | Key parameter |
|---|---|---|
| TMDB v3 style | https:/ | api_key or Authorization: Bearer |
| OMDb style | https:/ | apikey |
| Images | https:/ | none |
| Plan catalog | https:/ | none |
| Health check | https:/ | none |
Change the base URL and the key, keep your code. The plan catalog, the health check and images need no key, so you can test reachability before you pay.
Start here
-
TMDB API example: your first request in 2 minutes
TMDB API example for amodb: get a key, call GET /3/movie/550 in curl, JavaScript, Python, PHP or Go and load the poster from img.amodb.dev in 2 minutes.
-
TMDB read access token vs API key: amodb authentication
TMDB read access token vs API key explained. amodb takes one 32 hex key as api_key, a Bearer header or apikey for OMDb. Includes rotation and 401 fixes.
-
TMDB API rate limit and amodb rate limits
The TMDB API rate limit is about 40 requests per second per IP and may change. amodb caps each account at 20, 40 or 120 a minute, with headers and Retry-After.
Concepts
-
TMDB API error codes and fixes
TMDB API error codes on amodb: 10 HTTP and status_code pairs with messages and fixes, retry rules, the OMDb error shape and a checklist for a key not working.
-
TMDB language codes: the 14 languages amodb serves
TMDB language codes on amodb: 14 base languages, tags such as ru-RU and pt-BR, and the English fallback for any other tag, with a tag to language table.
-
TMDB image sizes and the image base URL
TMDB image sizes on img.amodb.dev: w92 to original with widths, heights and best uses. One /t/p/ URL pattern, no key, 30 day cache, 0 requests counted.
Resources
-
The amodb changelog lists every dated change to the API, the img.amodb.dev image host, the plan catalog and the website, newest first, with the action to take.
-
amodb API status in one request: GET api.amodb.dev/health returns ok, /plans tests your network path, repeated 500 and 504 mark an incident. How to report one.
API reference
All endpointsMovies
-
Movie details API: get a movie by id
/3/movie/{movie_id} -
TMDB credits API: get the cast and crew of a movie
/3/movie/{movie_id}/credits -
TMDB image URL: build a poster or backdrop link
/3/movie/{movie_id}/images -
TMDB trailer API: videos and trailers for movies and TV
/3/movie/{movie_id}/videos -
TMDB translations API: every language in one call
/3/movie/{movie_id}/translations -
TMDB keywords API: plot tags and keyword ids
/3/movie/{movie_id}/keywords
TV series
-
TMDB TV API: get a TV series by id
/3/tv/{series_id} -
TMDB episode API: seasons and episodes
/3/tv/{series_id}/season/{season_number}
People
-
TMDB person API: get an actor or crew member by id
/3/person/{person_id}
Search and lists
-
TMDB search API: search movies by title
/3/search/movie -
TMDB discover API for movies and TV shows
/3/discover/movie -
TMDB trending API: trending, popular and top rated
/3/trending/{media_type}/{time_window} -
TMDB genre ids: the movie and TV genre list
/3/genre/movie/list -
TMDB collections API: movie franchises by id
/3/collection/{collection_id} -
TMDB production companies and networks API
/3/company/{company_id} -
TMDB search by IMDb id and other external ids
/3/find/{external_id} -
/v1/abuse -
Cinemas API reference: search, details and schedules
/3/search/cinema
amodb extensions
-
Movie ratings API: IMDb, Rotten Tomatoes, Metacritic
/3/movie/{movie_id}/ratings -
Movie mood API: mood meters for movies and series
/3/movie/{movie_id}/moods -
Movie soundtrack API: albums and track lists
/3/movie/{movie_id}/soundtracks -
Cinema showtimes API: screenings by country and movie
/3/movie/{movie_id}/showtimes
Free films and streams
-
Movie license API: is this film public domain?
/3/movie/{movie_id}/license -
Public domain movies list: filter and search free films
/3/free/movie -
Free movie streaming API: links to play public domain films
/3/movie/{movie_id}/streams -
Stream reports: remove a source from a film's streams
/v1/legal/stream-reports
OMDb style
Tutorials
All tutorials- TMDB API Python tutorial: search a movie and read ratings
- TMDB API JavaScript tutorial: movie cards with Node.js fetch
- TMDB API PHP tutorial: a cURL client and a movie page
- TMDB API golang tutorial: top rated movies with net/http
- TMDB API Java tutorial: an episode guide with HttpClient
- TMDB API C# tutorial for .NET 8
- TMDB API Swift tutorial with SwiftUI
- Next.js movie app tutorial with the App Router
- WordPress movie database plugin: cards, lists and free films
- Telegram movie bot tutorial with grammY
- Discord movie bot tutorial with discord.js
More guides and indexes
-
Movie API comparison with checked numbers: price, free tier, commercial use, attribution, rate limits and ratings for TMDB, OMDb, IMDb, TheTVDB and Trakt.
-
Movie API use cases with the endpoints and request rate each one needs: catalogs, TV episode guides, posters, trailers, showtimes, anime and actor pages.
What does the movie API documentation cover?
| Guide | The question it answers |
|---|---|
| Quickstart | How do I send a first request and load a poster? |
| Authentication | Where does the key go, and how is it different from a TMDB token? |
| Rate limits | How many requests per minute does each plan allow? |
| Error codes | What do the HTTP and status_code values mean? |
| Language codes | Which 14 languages work in the language parameter? |
| TMDB image sizes | Which size fits which image? |
| OMDb API documentation | How does the OMDb style endpoint work? |
| API reference | Which parameters and fields does each endpoint have? |
| Tutorials | How do I build a first app in my language? |
| Status and changelog | Is the API up, and what changed? |
What is the same as TMDB v3, and what is different?
| Topic | Same as TMDB v3 | On amodb |
|---|---|---|
| Paths and JSON | Read paths, query parameters and response shape | Base URL is https:/ |
| Key | 32 hex characters, sent as api_key or as a Bearer header | One amodb key and no separate read access token; apikey on the OMDb endpoint |
| Error body | success, status_code and status_message | Codes such as 7, 25, 34, 36 and 37, listed under error codes |
| Language | language takes tags such as pt-BR | 14 base languages; any other tag returns English |
| Images | /t/p/{size}/{file} paths | Served from img.amodb.dev, no key, 30 day cache |
| Write methods | Account, session, rating and list methods | Not offered: HTTP 405, status_code 37 |
| Extra data | Not in TMDB | ratings, moods, soundtracks, wikidata, showtimes |
What limits and cache times apply?
The limit is per account: all keys of the account share one sliding 60 second window, and there is no daily cap. Cached replies still count toward the rate. Image requests do not, because the image host reads no key.
| Plan | Requests per minute per account | Most requests per day | All in one endpoint |
|---|---|---|---|
| Lite | 20 | 28,800 | No, HTTP 403 with status_code 3 |
| Pro | 40 | 57,600 | No, HTTP 403 with status_code 3 |
| Pro+ | 120 | 172,800 | Yes |
Every plan has every TMDB v3 and OMDb compatible endpoint, images, 14 languages and the extensions. Pro+ also has GET /, which returns everything about a title or person in one call.
The edge cache is shared across keys and keeps each kind of answer for a fixed time.
| Data | Edge cache time |
|---|---|
/3/configuration | 24 hours |
| Details and credits | 6 hours |
| Lists such as popular and now playing | 30 minutes |
| Search | 10 minutes |
| Images | 30 days |
Read rate limits for the headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After) and for the retry rules.
What does amodb add to the TMDB API?
amodb returns more than the TMDB v3 JSON. These extensions need no extra key and no higher plan, because every plan has them:
- Movie ratings API: IMDb, Kinopoisk, Metacritic, Rotten Tomatoes and TMDB scores in one object. Any of them can be null.
- Movie mood API: nine moods scored 0 to 10.
- Movie soundtrack API: albums and tracks for a title.
- Cinema showtimes API: screenings by country.
- Wikidata fields: budget, box office and awards, with the Wikidata id.
- Search by IMDb id:
GET /takes 12 sources, including3/ find/ {external_ id} kinopoisk_idandwikidata_id.
Add any of them to a details call with append_to_response, or call their own paths.
How do I move from TMDB or OMDb to amodb?
If you already use TMDB, read the TMDB API key page for the switch in four steps, and amodb vs TMDB for terms and limits side by side. If you need a drop in replacement for a client that calls OMDb, use the OMDb API documentation page. Prices start at $5.19 a month, listed on amodb pricing.