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://api.amodb.dev/3 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_id and kinopoisk_id, out of 12 accepted sources.
  • Extras TMDB lacks, such as ratings from 5 sources and wikidata with 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)OMDbamodb
Personal project that earns nothingFreeFree key, 1,000 requests a dayPaid, from $5.19 a month
App with ads, in-app purchases, donations or subscriptions$149 a month for companies under $1M revenue, custom quote aboveNo public commercial licenseNo extra charge; the terms do not prohibit it
AttributionTMDB logo plus a not-endorsed noticeContent under CC BY-NC 4.0No amodb logo; credit JustWatch and licensed texts and images as marked
Caching your copyNo caching beyond 6 monthsCheck their termsCache responses on your side; do not publish bulk dumps
Rate limitAbout 40 requests per second per IP, may change1,000 a day on the free key20, 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.

RouteCostCommercial useFreshness
IMDb TSV datasetsFreeNo, personal and non-commercial onlyAs fresh as the last published file
IMDb Essential on AWS Marketplace$150,000 per 12 monthsUnder the listing termsSet by the listing
TMDB API, syncedFree while earning nothing, then $149 a monthOn the commercial planYour refresh schedule, no caching beyond 6 months
amodb API, syncedFrom $5.19 a monthNo extra charge; the terms do not prohibit itYour 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.

EntityRead withKeyLinks to
MovieGET /3/movie/{movie_id}id, imdb_idgenres[].id, production_companies[].id, belongs_to_collection.id
PersonGET /3/person/{person_id}id, imdb_idMovies through /3/movie/{movie_id}/credits
CompanyGET /3/company/{company_id}idMovies through with_companies in discover. parent_company is always null and description is empty
CollectionGET /3/collection/{collection_id}idparts[], a list of movies
KeywordGET /3/keyword/{keyword_id}idMovies through /3/keyword/{keyword_id}/movies or with_keywords
GenreGET /3/genre/movie/listidgenres[].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

  1. 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.
  2. 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.
  3. Call /3/discover/movie for 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.

bashphp
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.

JSON
{
  "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

JobCallLimits
First loadGET /3/discover/movie with sort_by and a date windowpage 1 to 500, up to 20 results per page, so 10,000 per query. Slice by primary_release_date.gte and .lte to go beyond.
New releasesGET /3/discover/movie with primary_release_date.gte set to your last run, and GET /3/movie/upcomingCached for 30 minutes.
Refresh rowsGET /3/movie/{movie_id} for rows older than 6 hoursThere is no changes feed. Refresh the titles users open, and the rest less often.
Join your own idsGET /3/find/{external_id}One id per call, source chosen with external_source.
Lazy fillGET /3/movie/{movie_id} when a user opens a titleStore 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.

PlanRequests per minutePer hourPer day50,000 detail readsPrice per month
Lite201,20028,800About 42 hours$5.19
Pro402,40057,600About 21 hours$6.19
Pro+1207,200172,800About 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.

LayerHoldsTTL
Edge cacheDetails and credits6 hours
Edge cacheDiscover, trending and popular lists30 minutes
Edge cacheSearch10 minutes
Edge cacheConfiguration24 hours
Edge cacheImages30 days
Your tablesRows you keepUntil 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

CapabilityScrape pages yourselfStatic dataset filesamodb
FreshnessAs fresh as your last crawlAs fresh as the last published fileDetails cached 6 hours, refetch by age
Incremental updatesRe-crawl and compareDownload a new fileDiscover with a release date window, no changes feed
Ids across entitiesPage URLsDefined by the publisherNumeric ids, imdb_id and /3/find
What you runCrawlers and storageStorage and an import jobStorage and a sync script
Rate limitSet by the sites you crawlNot applicable20, 40 or 120 requests per minute, counted per account
Languages per recordWhatever each page offersDepends on the files14, chosen with language
Commercial useThe terms of each site applyOften personal and non-commercial onlyNo 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.