> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# TMDB (The Movie Database)

> Movie, TV series and people metadata: search, details, discovery filters, trending titles and streaming availability.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/tmdb.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=6f30d99d05aa7b673269cc15936bc43d)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

Needs&#x20;

`TMDB_API_KEY`

Endpoints

9

Auth

Key in query

[Vendor docs](https://developer.themoviedb.org/docs/getting-started) · Serves `themoviedb.org`

## Setup

| Variable | | What it is |
| - | - | - |
| `TMDB_API_KEY` | required | A TMDB v3 API key (account settings > API, after accepting the terms of use). Sent as the api\_key query parameter; the API Read Access Token, sent as a Bearer header, is the documented alternative. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Rate limit: roughly 40 requests per second, subject to change; back off on HTTP 429.
* Lists are paged: page starts at 1, and each page holds 20 results; total\_pages and total\_results come back with them.
* Image fields (poster\_path, profile\_path, backdrop\_path) are path fragments: build full URLs from the images base URL and sizes that GET /configuration returns.
* append\_to\_response on the details calls folds up to 20 sub-requests (credits, videos, images, external\_ids, watch/providers...) into one call.

## Endpoints

GET

Search movies, TV shows and people

One search across movies, TV series and people; each result carries media\_type.

[Open](#tmdb-search-multi)

GET

Search movies

Movies by title, optionally narrowed by year or region.

[Open](#tmdb-search-movie)

GET

Search TV series

TV series by name, optionally narrowed by first air year.

[Open](#tmdb-search-tv)

GET

Get movie details

A movie's overview, genres, runtime, release date, budget, revenue, ratings and more.

[Open](#tmdb-movie-get)

GET

Get TV series details

A series' overview, seasons, episode counts, networks, status and ratings.

[Open](#tmdb-tv-get)

GET

Get person details

An actor's or crew member's biography, birth date, known-for department and more.

[Open](#tmdb-person-get)

GET

Discover movies by filters

Movies filtered by genre, dates, ratings, language, cast, companies or streaming provider, sorted as asked.

[Open](#tmdb-discover-movie)

GET

Get trending titles and people

Trending movies, TV series and people today or this week.

[Open](#tmdb-trending-all)

GET

Get where a movie streams

Streaming, rental and purchase providers for a movie, per country.

[Open](#tmdb-movie-watch-providers)

### Search movies, TV shows and people

GET

`/search/multi`

`tmdb.search.multi`

One search across movies, TV series and people; each result carries media\_type.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Search text. Example `dune`</td></tr>

    <tr>
      <td>
        `include_adult`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include adult titles, default false.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/search-multi)

```python Python theme={null}
router.call_data_api("tmdb.search.multi", {'query': 'dune'})
```

```text MCP theme={null}
call_data_api(endpoint="tmdb.search.multi", params={"query": "dune"})
```

### Search movies

GET

`/search/movie`

`tmdb.search.movie`

Movies by title, optionally narrowed by year or region.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search text.
      </td>
    </tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Release year.
      </td>
    </tr>

    <tr>
      <td>
        `primary_release_year`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Primary release year.
      </td>
    </tr>

    <tr>
      <td>
        `region`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO 3166-1 country code.
      </td>
    </tr>

    <tr>
      <td>
        `include_adult`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include adult titles, default false.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/search-movie)

### Search TV series

GET

`/search/tv`

`tmdb.search.tv`

TV series by name, optionally narrowed by first air year.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search text.
      </td>
    </tr>

    <tr>
      <td>
        `first_air_date_year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Year of first air date, 1000-9999.
      </td>
    </tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Year, 1000-9999.
      </td>
    </tr>

    <tr>
      <td>
        `include_adult`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include adult titles, default false.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/search-tv)

### Get movie details

GET

`/movie/{movie_id}`

`tmdb.movie.get`

A movie's overview, genres, runtime, release date, budget, revenue, ratings and more.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`movie_id` required</td><td>integer</td><td>path</td><td>TMDB movie id. Example `550`</td></tr>

    <tr>
      <td>
        `append_to_response`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated sub-requests to include, up to 20 (e.g. credits,videos,release\_dates).
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/movie-details)

```python Python theme={null}
router.call_data_api("tmdb.movie.get", {'movie_id': 550})
```

```text MCP theme={null}
call_data_api(endpoint="tmdb.movie.get", params={"movie_id": 550})
```

### Get TV series details

GET

`/tv/{series_id}`

`tmdb.tv.get`

A series' overview, seasons, episode counts, networks, status and ratings.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `series_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        TMDB series id.
      </td>
    </tr>

    <tr>
      <td>
        `append_to_response`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated sub-requests to include, up to 20.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/tv-series-details)

### Get person details

GET

`/person/{person_id}`

`tmdb.person.get`

An actor's or crew member's biography, birth date, known-for department and more.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `person_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        TMDB person id.
      </td>
    </tr>

    <tr>
      <td>
        `append_to_response`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated sub-requests to include (e.g. movie\_credits,tv\_credits), up to 20.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/person-details)

### Discover movies by filters

GET

`/discover/movie`

`tmdb.discover.movie`

Movies filtered by genre, dates, ratings, language, cast, companies or streaming provider, sorted as asked.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sort_by`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Default popularity.desc; also revenue, primary\_release\_date, title, original\_title, vote\_average, vote\_count with .asc or .desc.
      </td>
    </tr>

    <tr>
      <td>
        `with_genres`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Genre ids; comma means AND, pipe means OR.
      </td>
    </tr>

    <tr>
      <td>
        `primary_release_date_gte`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Earliest primary release date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `primary_release_date_lte`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Latest primary release date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `primary_release_year`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Primary release year.
      </td>
    </tr>

    <tr>
      <td>
        `vote_average_gte`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum average rating.
      </td>
    </tr>

    <tr>
      <td>
        `vote_count_gte`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum number of votes.
      </td>
    </tr>

    <tr>
      <td>
        `with_original_language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Original language (ISO 639-1).
      </td>
    </tr>

    <tr>
      <td>
        `with_cast`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Person ids in the cast; comma AND, pipe OR.
      </td>
    </tr>

    <tr>
      <td>
        `with_companies`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Production company ids.
      </td>
    </tr>

    <tr>
      <td>
        `with_keywords`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Keyword ids.
      </td>
    </tr>

    <tr>
      <td>
        `region`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country code; release-date filters then use that region's date.
      </td>
    </tr>

    <tr>
      <td>
        `watch_region`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country for the streaming filters.
      </td>
    </tr>

    <tr>
      <td>
        `with_watch_providers`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Streaming provider ids; needs watch\_region.
      </td>
    </tr>

    <tr>
      <td>
        `with_watch_monetization_types`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        flatrate, free, ads, rent or buy; needs watch\_region.
      </td>
    </tr>

    <tr>
      <td>
        `include_adult`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include adult titles, default false.
      </td>
    </tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/discover-movie)

```python Python theme={null}
router.call_data_api("tmdb.discover.movie")
```

```text MCP theme={null}
call_data_api(endpoint="tmdb.discover.movie")
```

### Get trending titles and people

GET

`/trending/all/{time_window}`

`tmdb.trending.all`

Trending movies, TV series and people today or this week.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`time_window` required</td><td>string</td><td>path</td><td>day or week. One of `day`, `week`</td></tr>

    <tr>
      <td>
        `language`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Language of returned text, default en-US.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/trending-all)

### Get where a movie streams

GET

`/movie/{movie_id}/watch/providers`

`tmdb.movie.watch_providers`

Streaming, rental and purchase providers for a movie, per country.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `movie_id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        TMDB movie id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.themoviedb.org/reference/movie-watch-providers)

> [!NOTE]
>
> * The data comes from JustWatch, and TMDB requires that it be attributed to JustWatch wherever it is shown.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.