---
id: "imdb_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["media", "objectids"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/imdb_id"
---

# IMDb ID (`imdb_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of a page in the Internet Movie Database: a two-letter prefix and seven or eight digits. tt is a title (film, series, episode or game), nm a person or group, co a company, ev an event, ch a character and ni a news item. An event edition adds the year, as in ev0000003/2015. Some datasets store title IDs without the tt prefix, as the digits only (MovieLens writes 0114709 for tt0114709); the regexp does not accept that form.

- Personal data (PII): no
- Categories: Media and entertainment (media), Objects identifiers (objectids)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:(?:tt|nm|co|ch|ni)\d{7,8}|ev\d{7}(?:/(?:19|20)\d{2}(?:/[12])?)?)$
```

## Examples

- `tt0068646` — The Godfather
- `tt0114709` — Toy Story
- `nm1397313` — The Beatles
- `co0071326` — Lucasfilm
- `ch0000985` — Harry Potter
- `ev0000003/2015` — 87th Academy Awards
- `ni61008607` — ‘Captain Marvel’ Finds Directors in Anna Boden, Ryan Fleck (EXCLUSIVE)
- `0114709` (invalid example) — Toy Story without the tt prefix, as in the MovieLens links file

## Mappings

- wikidata: `P345`

## Supported by tools

- `greatexpectations`

## Translations

- ru: Идентификатор IMDb: Идентификатор страницы в Internet Movie Database из двухбуквенного префикса (tt, nm, co, ev, ch, ni) и семи или восьми цифр.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/IMDb>
- doc: <https://developer.imdb.com/documentation/key-concepts>
- wikidata: <https://www.wikidata.org/wiki/Property:P345>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/imdb_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/media/imdb_id.yaml>
