# MediaTitle

> A film, series or episode as a film database shows it: rating, year, genres, credits and plot.

Canonical page: https://okdata.online/docs/objects/media_title/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | The database's ID: the Douban subject ID, or the IMDb tt… ID. The other title endpoints take it. |
| `url` | string | Trang của tác phẩm. |
| `title` | string | Tiêu đề, theo ngôn ngữ yêu cầu (Douban: tiếng Trung). |
| `original_title` | string \| null | Tiêu đề bằng ngôn ngữ gốc, nếu có. |
| `type` | string \| null | Kind of title in the database's words, lower snake case: movie, tv_series, tv_episode, short… |
| `year` | integer \| null | Năm phát hành (với series: năm đầu tiên). |
| `rating` | number \| null | Average rating on the scale in rating_max; null when there are too few ratings. |
| `rating_max` | number \| null | Mức cao nhất của thang điểm (10 ở cả hai). |
| `rating_count` | integer \| null | Số người đã chấm điểm. |
| `genres` | string[] \| null | Thể loại, theo cách gọi của cơ sở dữ liệu. |
| `countries` | string[] \| null | Quốc gia sản xuất, theo cách gọi của cơ sở dữ liệu. |
| `runtime_minutes` | integer \| null | Thời lượng tính bằng phút. |
| `poster_url` | string \| null | Ảnh poster. |
| `summary` | string \| null | Tóm tắt nội dung. |
| `directors` | string[] \| null | Đạo diễn, theo tên được ghi danh. |
| `cast` | string[] \| null | Diễn viên chính, theo tên được ghi danh, theo thứ tự trên danh đề. |
| `rank` | integer \| null | Place on the chart or board, from 1; null outside them. |
| `ext` | object | Dữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. |

## Endpoints that return a MediaTitle

- [Chi tiết tác phẩm IMDb](https://okdata.online/apis/imdb/titles/get/) (`imdb.titles.get`): $0.011 per call
- [Thông tin cơ bản tác phẩm IMDb](https://okdata.online/apis/imdb/titles/base/get/) (`imdb.titles.base.get`): $0.011 per call
- [Thông tin mở rộng IMDb](https://okdata.online/apis/imdb/titles/extended/get/) (`imdb.titles.extended.get`): $0.011 per call
- [Tổng quan tác phẩm IMDb](https://okdata.online/apis/imdb/titles/overview/get/) (`imdb.titles.overview.get`): $0.011 per call
- [Diễn viên và đoàn phim chính IMDb](https://okdata.online/apis/imdb/titles/credits/get/) (`imdb.titles.credits.get`): $0.011 per call
- [Cốt truyện IMDb](https://okdata.online/apis/imdb/titles/plot/get/) (`imdb.titles.plot.get`): $0.011 per call
- [IMDb "Did you know"](https://okdata.online/apis/imdb/titles/trivia/get/) (`imdb.titles.trivia.get`): $0.011 per call
- [Tóm tắt đánh giá phê bình IMDb](https://okdata.online/apis/imdb/titles/critics/get/) (`imdb.titles.critics.get`): $0.011 per call
- [Tóm tắt giải thưởng IMDb](https://okdata.online/apis/imdb/titles/awards/get/) (`imdb.titles.awards.get`): $0.011 per call
- [Tóm tắt đánh giá người dùng IMDb](https://okdata.online/apis/imdb/titles/user_reviews/get/) (`imdb.titles.user_reviews.get`): $0.011 per call
- [Doanh thu phòng vé IMDb](https://okdata.online/apis/imdb/titles/box_office/get/) (`imdb.titles.box_office.get`): $0.011 per call
- [Dự kiến phát hành IMDb](https://okdata.online/apis/imdb/titles/release/get/) (`imdb.titles.release.get`): $0.011 per call
- [Quốc gia sản xuất IMDb](https://okdata.online/apis/imdb/titles/countries/get/) (`imdb.titles.countries.get`): $0.011 per call
- [Câu hỏi đóng góp IMDb](https://okdata.online/apis/imdb/titles/contribution_questions/get/) (`imdb.titles.contribution_questions.get`): $0.011 per call
- [IMDb "More like this"](https://okdata.online/apis/imdb/titles/similar/list/) (`imdb.titles.similar.list`): $0.011 per call · about 12 results per page
- [IMDb Top 250](https://okdata.online/apis/imdb/charts/titles/list/) (`imdb.charts.titles.list`): $0.011 per call · about 250 results per page
- [Gợi ý streaming IMDb](https://okdata.online/apis/imdb/streaming/titles/list/) (`imdb.streaming.titles.list`): $0.011 per call · about 20 results per page
- [Phim điện ảnh hot trên Douban](https://okdata.online/apis/douban/movies/trending/) (`douban.movies.trending`): $0.022 per call · about 20 results per page
- [Phim truyền hình hot trên Douban](https://okdata.online/apis/douban/tv/trending/) (`douban.tv.trending`): $0.022 per call · about 20 results per page
- [Chi tiết tựa phim Douban](https://okdata.online/apis/douban/titles/get/) (`douban.titles.get`): $0.022 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `url`, `title`, `type`, `year`, `rating`, `rating_count`, `genres`, `summary`, `rank`
- standard: `original_title`, `rating_max`, `countries`, `runtime_minutes`, `poster_url`, `directors`, `cast`
- full: `ext`
