Media
GET/v1.3/titles/{type}/{id}/media
A title’s posters, stills, logos and videos in one list.
Images and videos share one shape. An image has empty youtube_id, preview_url and runtime_sec; a video has empty width and height. URLs are complete: no need to build a link from parts.
A media library can be large: Inception has 485 files. Narrow it down: type=poster&language=en for English posters, class=video for videos only, group=type for sections with their sizes.
The animated poster, poster_gif, is listed as an image but is an mp4 clip of up to 7 MB. Show it in <video autoplay muted loop playsinline> and load it on demand. When there is one, there is only one, and it comes first.
Path parameters
typestringrequiredThe catalog the ID comes from: IMDb, Kinopoisk, TMDB (movie or series) or Kinorium.
imdbkptmdbtmdb_tvkinoriumidstringrequiredThe ID in that catalog. IMDb IDs are
ttfollowed by digits (tt1375666); the others are digits (447301).
Query parameters
classenumImages only or videos only.
imagevideoDefault:both
typeenumFile type. Images:
poster_gif,poster,backdrop,still,cover,logo,promo,backstage,other. Videos:trailer,teaser,tvspot,clip,interview,music_video,behind_scenes,blooper,overview,other. Both haveother: addclassto pick one. Labels are in/enums, setsimage_typesandvideo_kinds.Default:all
Example:type=posterlanguagestringThe language of the lettering on an image or the audio of a video, an ISO 639-1 code.
Default:all
Example:language=rugroupenumSplit the list into sections.
nonegives a flat list. How sections work is in Lists and pagination.typeclasslanguagenoneDefault:no sections
langru | enKeep one language in the response. Without it, text fields come in
_ruand_enpairs. More in Response languages.Example:lang=enlimitintegerHow many items to return, a whole number from 1. With sections, per section, up to 50. In a flat list, up to 1000. Above the cap isn’t an error: the API lowers it and shows the value in
limit.Default:10 per section, 1000 in a flat list
Example:limit=20offsetintegerHow many items to skip, a whole number from 0. Only in a flat list: with sections it returns
400.Default:0
Response fields
itemsarrayFiles. With
group, sections with their owntotaland labels.Show 9 fields
classenumimageorvideo.typeenumFile type.
poster_gifposterbackdropstillcoverlogopromobackstageothertrailerteasertvspotclipinterviewmusic_videobehind_scenesblooperoverviewurlstringFile URL. For a video, the player page: YouTube, sometimes VK.
languagestring | nullLanguage of the lettering or audio, ISO 639-1.
nullmeans no language or unknown.width · heightinteger | nullImage size in pixels.
nullfor a video.youtube_idstring | nullThe YouTube video ID.
nullfor videos hosted elsewhere; openurlthen.preview_urlstring | nullVideo cover image.
runtime_secinteger | nullVideo length in seconds.
total · limit · offset · has_morePaging, as in every list.
Errors
| status | code | when |
|---|---|---|
| 400 | invalid_request | An unknown |
| 404 | not_found | No title found for this ID. |
| 401 | unauthorized | The |
| 429 | rate_limited | The per-second rate limit or the daily quota is used up. |
Every code and what to do about it is on the Errors page.