What is a movie database API?
A movie database API returns movies, people, companies, collections and keywords as JSON records with numeric ids that link to each other, so you can copy them into your own tables. TMDB, short for The Movie Database, is the best known one, and people who search for "the movie database api" usually mean it. amodb keeps the TMDB v3 read paths, query parameters and JSON at https:/ from $5.19 a month, so TMDB code works after a base URL change and a discover query can seed up to 10,000 rows.
amodb is not The Movie Database API itself. TMDB is The Movie Database, and amodb is an independent service that is not affiliated with it. amodb keys do not work on api.themoviedb.org, and TMDB keys do not work on amodb. What stays the same is the protocol: /3/movie/{movie_id}, /3/discover/movie, append_to_response, the field names and the error body.
What you get:
- Six linked entity types with stable numeric ids.
- Discover paging for the first load: up to 20 results per page, 500 pages per query.
- Release date windows on discover, to slice the first load and to list new releases.
- External id lookups for
imdb_id,tvdb_id,wikidata_idandkinopoisk_id, out of 12 accepted sources. - Extras TMDB lacks, such as
ratingsfrom 5 sources andwikidatawith budget and box office, on the same ids.
Is the movie database API free?
TMDB's API is free only until the app earns money. amodb has no free tier. The TMDB and OMDb terms depend on whether your project is personal or commercial, while amodb charges the same either way.
| TMDB (The Movie Database) | OMDb | amodb | |
|---|---|---|---|
| Personal project that earns nothing | Free | Free key, 1,000 requests a day | Paid, from $5.19 a month |
| App with ads, in-app purchases, donations or subscriptions | $149 a month for companies under $1M revenue, custom quote above | No public commercial license | No extra charge; the terms do not prohibit it |
| Attribution | TMDB logo plus a not-endorsed notice | Content under CC BY-NC 4.0 | No amodb logo; credit JustWatch and licensed texts and images as marked |
| Caching your copy | No caching beyond 6 months | Check their terms | Cache responses on your side; do not publish bulk dumps |
| Rate limit | About 40 requests per second per IP, may change | 1,000 a day on the free key | 20, 40 or 120 per minute per account, no daily cap |
TMDB staff wrote on the TMDB forum (2026-10-15) that an app is commercial the moment it earns revenue from ads, in-app purchases, donations or subscriptions, and quoted (2026-03-31) $149 a month for companies under $1M revenue. There is no tier between free and $149. TMDB's terms let TMDB decide what counts as commercial and end the license at any time. More detail is on Is the TMDB API free? and TMDB API alternative.
amodb costs $5.19, $6.19 or $7.19 a month, which is 3.5% to 4.8% of TMDB's $149 plan. For a synced database the rate limit matters more than the price: TMDB's limit is higher, while amodb's is fixed per account by your plan, so you can plan a sync run to the hour.
Is there a movie dataset API?
Yes, but most published datasets come with non-commercial terms. IMDb publishes free TSV datasets for personal and non-commercial use only. The licensed bulk "Essential" data listing on AWS Marketplace costs $150,000 per 12 months, and the full IMDb and Box Office Mojo API is $400,000 per 12 months plus metered fees. Details are on IMDb API.
The other route is to build a private dataset from an API. amodb lets you sync and cache responses in your own tables for your own product. Its acceptable use policy forbids publishing bulk dumps of API responses as a dataset, so the copy stays inside your app.
| Route | Cost | Commercial use | Freshness |
|---|---|---|---|
| IMDb TSV datasets | Free | No, personal and non-commercial only | As fresh as the last published file |
| IMDb Essential on AWS Marketplace | $150,000 per 12 months | Under the listing terms | Set by the listing |
| TMDB API, synced | Free while earning nothing, then $149 a month | On the commercial plan | Your refresh schedule, no caching beyond 6 months |
| amodb API, synced | From $5.19 a month | No extra charge; the terms do not prohibit it | Your refresh schedule, details cached 6 hours at the edge |
What data you get
This is the data model. Each row is one table in a relational copy.
| Entity | Read with | Key | Links to |
|---|---|---|---|
| Movie | GET / | id, imdb_id | genres[].id, production_, belongs_ |
| Person | GET / | id, imdb_id | Movies through / |
| Company | GET / | id | Movies through with_companies in discover. parent_company is always null and description is empty |
| Collection | GET / | id | parts[], a list of movies |
| Keyword | GET / | id | Movies through / or with_keywords |
| Genre | GET / | id | genres[].id on movies |
Many to many links need join tables: movie_genre, movie_company, movie_keyword and movie_credit. Use credit_id from the credits API as the key of the last one. Field lists are on movie details API, person API and collections API. Company and network fields are on production companies and networks.
Start in 3 steps
- Compare the three request rates on amodb pricing. A bigger rate shortens the first load. Every plan has every TMDB v3 compatible endpoint, the OMDb compatible endpoint, images, 14 languages and the extensions.
- Enter your email and pay, then sign in with the 6 digit code amodb emails you. Your first key is created and shown once. Keep the key in an environment variable, never in client side code. The TMDB API key page covers the key format.
- Call
/3/discover/moviefor a one day window of release dates, then fetch each id on the list.
Example request
The PHP script lists the movies released yesterday and today through discover and upserts each record into a SQLite table. It sleeps 3 seconds between detail reads so it stays under 20 requests per minute, retries a 429 after Retry-After, and deletes rows whose id now returns 404. A longer walkthrough is on TMDB API in PHP.
curl -s "https://api.amodb.dev/3/discover/movie?primary_release_date.gte=2026-10-17&primary_release_date.lte=2026-10-18&sort_by=primary_release_date.asc&page=1" \
-H "Authorization: Bearer $AMODB_KEY"<?php
const BASE = 'https://api.amodb.dev/3';
function amodb(string $path, array $query = []): ?array
{
$url = BASE . $path . '?' . http_build_query($query);
for ($attempt = 0; $attempt < 3; $attempt++) {
$retryAfter = 1;
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 10,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('AMODB_KEY')],
CURLOPT_HEADERFUNCTION => function ($handle, $line) use (&$retryAfter) {
if (stripos($line, 'Retry-After:') === 0) {
$retryAfter = max(1, (int) trim(substr($line, 12)));
}
return strlen($line);
},
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status === 429) {
sleep($retryAfter);
continue;
}
if ($status === 404) {
return null;
}
if ($status !== 200) {
throw new RuntimeException("amodb returned $status for $path");
}
return json_decode($body, true);
}
throw new RuntimeException("Still rate limited on $path");
}
$db = new PDO('sqlite:movies.sqlite');
$db->exec('CREATE TABLE IF NOT EXISTS movie (id INTEGER PRIMARY KEY, imdb_id TEXT, title TEXT, release_date TEXT, raw TEXT)');
$save = $db->prepare('INSERT OR REPLACE INTO movie (id, imdb_id, title, release_date, raw) VALUES (?, ?, ?, ?, ?)');
$drop = $db->prepare('DELETE FROM movie WHERE id = ?');
$from = date('Y-m-d', strtotime('-1 day'));
$to = date('Y-m-d');
$page = 1;
do {
$list = amodb('/discover/movie', [
'primary_release_date.gte' => $from,
'primary_release_date.lte' => $to,
'sort_by' => 'primary_release_date.asc',
'page' => $page,
]);
foreach ($list['results'] as $row) {
$movie = amodb('/movie/' . $row['id'], ['language' => 'en-US']);
if ($movie === null) {
$drop->execute([$row['id']]);
continue;
}
$save->execute([$movie['id'], $movie['imdb_id'] ?? null, $movie['title'], $movie['release_date'] ?? null, json_encode($movie)]);
sleep(3);
}
$page++;
} while ($page <= min($list['total_pages'], 500));Discover returns list rows, not full records. This is 2 of the 20 results on page 1. Read /3/movie/{id} for the rest of the fields.
{
"page": 1,
"results": [
{
"adult": false,
"backdrop_path": "/siepLRGVjM8yLKppApkD3uSh8Y0.jpg",
"genre_ids": [
35
],
"id": 1800227,
"original_language": "en",
"original_title": "Sly's Pack",
"overview": "Nesmith, Gary, & Tony are smoking weed on the roof of a parking garage, but a...",
"popularity": 0.0071,
"poster_path": "/3HpIWZUI7jmpKZkfZNdchS2WsvN.jpg",
"release_date": "2026-10-17",
"title": "Sly's Pack",
"video": false,
"vote_average": 0,
"vote_count": 0
},
{
"adult": false,
"backdrop_path": null,
"genre_ids": [
99
],
"id": 1800168,
"original_language": "en",
"original_title": "The Good Life",
"overview": "The Good LIfe is based on the best-selling book by Drs. Robert Waldinger and...",
"popularity": 0.0143,
"poster_path": null,
"release_date": "2026-10-17",
"title": "The Good Life",
"video": false,
"vote_average": 0,
"vote_count": 0
}
],
"total_pages": 15,
"total_results": 299
}This two day window holds 299 titles on 15 pages, so a full run costs 15 discover calls plus 299 detail reads, 314 requests, or about 16 minutes at 20 requests per minute.
Fill and refresh the tables
| Job | Call | Limits |
|---|---|---|
| First load | GET /3/discover/movie with sort_by and a date window | page 1 to 500, up to 20 results per page, so 10,000 per query. Slice by primary_ and .lte to go beyond. |
| New releases | GET /3/discover/movie with primary_ set to your last run, and GET /3/movie/upcoming | Cached for 30 minutes. |
| Refresh rows | GET / for rows older than 6 hours | There is no changes feed. Refresh the titles users open, and the rest less often. |
| Join your own ids | GET / | One id per call, source chosen with external_source. |
| Lazy fill | GET / when a user opens a title | Store the reply with a timestamp. |
The paging window is the main design choice. When total_pages in a reply is above 500, the window holds more than 10,000 rows, so cut it in halves until it fits. A recent year needs months: March 2025 alone holds about 4,400 titles, and one day of releases is a few hundred. Store the slice you finished so a crashed run can resume. Filters for the windows are on TMDB discover API, and matching rules for the join are on search by IMDb id.
/3/find/{external_id} accepts imdb_id, tvdb_id, wikidata_id and kinopoisk_id among its 12 sources and returns the matching record. Movie records also carry imdb_id, so the join works in both directions.
How long does a first load take?
Each row you load or refresh costs one detail read, and a discover page lists 20 ids for one call. The plan sets a fixed rate per account, counted in a sliding 60 second window, with no daily cap.
| Plan | Requests per minute | Per hour | Per day | 50,000 detail reads | Price per month |
|---|---|---|---|---|---|
| Lite | 20 | 1,200 | 28,800 | About 42 hours | $5.19 |
| Pro | 40 | 2,400 | 57,600 | About 21 hours | $6.19 |
| Pro+ | 120 | 7,200 | 172,800 | About 7 hours | $7.19 |
Run the refresh at off-peak hours if your app runs on the same account, because the limit is per account, not per script or per key. Users and a sync job that call at the same time split one budget, even when each has its own key. See rate limits for the headers that report what is left in the window.
How should I cache the copy?
Use two layers: the shared edge cache in front of the API, and your own tables.
| Layer | Holds | TTL |
|---|---|---|
| Edge cache | Details and credits | 6 hours |
| Edge cache | Discover, trending and popular lists | 30 minutes |
| Edge cache | Search | 10 minutes |
| Edge cache | Configuration | 24 hours |
| Edge cache | Images | 30 days |
| Your tables | Rows you keep | Until your age rule says to refetch, never sooner than 6 hours |
The edge cache is shared across keys, but the rate limit runs before it, so a cache hit still uses one request from your minute. Rereading a row more often than every 6 hours returns the same copy and wastes quota. Let an age rule decide when to refetch: for example every 6 hours for titles users opened today, weekly for the back catalog. amodb's terms let you cache responses freely on your side, while TMDB's terms bar caching beyond 6 months.
How it compares
| Capability | Scrape pages yourself | Static dataset files | amodb |
|---|---|---|---|
| Freshness | As fresh as your last crawl | As fresh as the last published file | Details cached 6 hours, refetch by age |
| Incremental updates | Re-crawl and compare | Download a new file | Discover with a release date window, no changes feed |
| Ids across entities | Page URLs | Defined by the publisher | Numeric ids, imdb_id and /3/find |
| What you run | Crawlers and storage | Storage and an import job | Storage and a sync script |
| Rate limit | Set by the sites you crawl | Not applicable | 20, 40 or 120 requests per minute, counted per account |
| Languages per record | Whatever each page offers | Depends on the files | 14, chosen with language |
| Commercial use | The terms of each site apply | Often personal and non-commercial only | No extra charge; the terms do not prohibit it |
For single title lookups without a local copy, the movie API page shows the two request pattern, search then details.
How much does a movie database API cost?
TMDB is free until the app earns money, then $149 a month for companies under $1M revenue. IMDb's bulk data costs $150,000 per 12 months. amodb costs $5.19, $6.19 or $7.19 a month for 20, 40 or 120 requests per minute.
The first load is the expensive part, and it is bounded by your requests per minute: 50,000 detail reads take about 42 hours on Lite and about 7 hours on Pro+. Pay for 1, 3, 6, 12 or 24 months at 0, 10, 20, 30 or 40 percent off; the lowest price is $3.11 a month for Lite on 24 months ($74.74). Card, Apple Pay and Google Pay payments are prepaid and do not renew automatically; Patreon is monthly and renews on Patreon until you cancel there. There is no free tier. See amodb pricing.
Sources
Read on 2026-10-19.
- TMDB API terms of use: TMDB decides what is commercial, may end the license at any time, logo and not-endorsed notice, no caching beyond 6 months.
- TMDB forum, commercial use thread: staff reply of 2026-10-15 on what makes an app commercial.
- TMDB forum, commercial price thread: staff reply of 2026-03-31 with $149 a month under $1M revenue.
- OMDb on Patreon and OMDb legal page: 1,000 free requests a day, personal and non-commercial use, CC BY-NC 4.0.
- IMDb on AWS Marketplace: $400,000 per 12 months for the API, $150,000 per 12 months for Essential bulk data, TSV datasets personal and non-commercial.
- MDBList plans: 1,000 free requests a day.