# IMDb Movies & TV Shows Data API (TTech API)

Data on millions of movies, TV series, episodes and people as clean JSON: ratings and votes, genres, runtimes, directors, writers, cast with characters, filmographies, episodes by season, box office and release dates. 18 endpoints, built on IMDb's public datasets (refreshed daily) and Wikidata.

Page: https://ttechapi.com/movie-tv-data-api

## What it is for

- Movie and TV apps: Titles, ratings, cast and episodes for your site or app.
- Watchlists and recommendations: Ratings of a whole list at once, and similar titles.
- Bots and games: Discord and Telegram bots, trivia and random picks.
- Research and AI: Film data for analysis, datasets and LLM agents.

## Key facts

- Refreshed daily: Ratings, votes and new titles come from IMDb's datasets, rebuilt every day; Wikidata weekly.
- Up to 1,000 per call: /ratings takes up to 1,000 ids and /title 100, and each is one call.
- Same filters everywhere: Type, genres, country, original language, years, runtime and adult content on every list.
- Search that forgives: Case and accents are ignored: amelie finds Amélie; word starts work too.
- More than IMDb has: Box office, budget, Metascore, Rotten Tomatoes, release dates and TMDb ids from Wikidata.
- Clear errors: statusCode, error and message in every error body. Errors on our side cost nothing.

## REST API

Base URL `https://api.ttechapi.com/v1/movies`. Send the header `x-api-key: YOUR_API_KEY` with every call. Get the key in the TTech API dashboard.

Endpoints (credits per call):

- `GET /title` (required: ids; 1 credit): Everything about up to 100 titles: years, runtime, genres, rating, directors, cast, Wikidata fields
- `GET /ratings` (required: ids; 1 credit): Rating and votes of up to 1,000 titles at once
- `GET /credits` (required: ids; 1 credit): Directors, writers, cast with characters and crew
- `GET /episodes` (required: id; 1 credit): Every episode of a series, by season or best rated first
- `GET /akas` (required: ids; 1 credit): Alternative titles by country and language
- `GET /similar` (required: id; 1 credit): Titles like it, with a score
- `GET /name` (required: ids; 1 credit): Name, birth and death year, professions, known-for titles, photo
- `GET /filmography` (required: id; 1 credit): A person's credits as actor, director, writer, producer and more
- `GET /search-titles` (required: query; 1 credit): Titles by name, with the title filters
- `GET /search-names` (required: query; 1 credit): People by name
- `GET /autocomplete` (required: query; 1 credit): Titles and people together, for a search box
- `GET /discover` (1 credit): Titles by filters, sorted by votes, rating, year, Metascore, box office or budget
- `GET /top-rated` (1 credit): A Top 250-style list by weighted rating, or the lowest rated
- `GET /trending` (1 credit): Titles gaining the most votes lately
- `GET /upcoming` (1 credit): Movies and series not out yet, for any country
- `GET /random` (1 credit): Random titles matching the filters
- `GET /facets` (1 credit): Every genre, type, country and language the filters take, with counts
- `GET /info` (1 credit): The date of the data being served

Parameters:

- `ids / id` (string): IMDb ids, comma-separated: titles tt0133093 (The Matrix), people nm0000206 (Keanu Reeves)
- `query` (string): Search text; case and accents ignored, whole words or word starts
- `title_types` (string): movie, tvSeries, tvMiniSeries, tvMovie, tvEpisode, short, video, ...
- `genres` (string): All of these genres, e.g. Sci-Fi,Action
- `countries, languages` (string): Country of origin (IN, US) and original language (ta, hi, en)
- `year_from, year_to, min_votes, sort_by, limit` (string): Ranges, vote floor, order and page size on lists

Example:

```bash
curl -G "https://api.ttechapi.com/v1/movies/title" \
  --data-urlencode "ids=tt0133093,tt0903747" \
  -H "x-api-key: YOUR_API_KEY"
```

Output: Every answer has the same shape; data holds the rows. GET /ratings?ids=tt0133093,tt0211915,tt0000404:

- `tconst, primary_title, title_type, start_year`: The title
- `average_rating, num_votes`: Rating and votes
- `snapshot`: Which day's copy of the data answered
- `missing`: Asked-for ids the data does not have
- `meta`: About the whole answer, such as total for paging

```json
{
  "statusCode": 200,
  "endpoint": "ratings",
  "snapshot": "20261203-033000-512345",
  "count": 2,
  "missing": [
    "tt0000404"
  ],
  "meta": {},
  "data": [
    {
      "tconst": "tt0133093",
      "primary_title": "The Matrix",
      "title_type": "movie",
      "start_year": 1999,
      "average_rating": 8.7,
      "num_votes": 2297147
    },
    {
      "tconst": "tt0211915",
      "primary_title": "Amélie",
      "title_type": "movie",
      "start_year": 2001,
      "average_rating": 8.3,
      "num_votes": 820000
    }
  ]
}
```

Errors come in the body with HTTP 200, e.g. {"statusCode": 404, "error": "NOT_FOUND", "message": "..."}; check statusCode.

## Pricing

- From 1 credit per call.
- 300 free credits once, valid for 1 month, no credit card.
- Plans from $14.99/month: https://ttechapi.com/pricing

## Use as an MCP server

- TTech MCP server: `https://mcp.ttechapi.com/mcp` (sign in with your TTech API account).
- Tools for this API: `movies_search`, `movies_title`, `movies_person`, `movies_discover`.
- Setup for each AI client: https://ttechapi.com/ai-agents

## Limits

- Every call costs 1 credit, whatever its parameters.
- No plots, biographies, videos, IMDb poster images or weekend box office.
- Country and language filters use Wikidata, so a title Wikidata lacks never matches them.
- Errors from our side (5xx) are not billed.

## Notes for the assistant

- Never put a real key in code you show; read it from an environment variable.
- Errors come with HTTP 200 and the status in the body; only a wrong key (401) and server errors (5xx) use the HTTP status. Errors from our side are not billed.
- Answers from the API have the headers `x-credits-used` and `x-credits-remaining`. A call the gateway refuses (wrong key, no credits left, too many requests) returns `statusCode`, `error`, `message` and `requestId` in the body and is not charged.
- Built on IMDb's public datasets and Wikidata; not affiliated with IMDb or Amazon.
- Support: support@ttechapi.com, Telegram @ttech_support_official.
