Related titles
GET/v1.3/titles/{type}/{id}/relations
Similar titles, the franchise, references to other films and mentions in them.
The examples on the right use The Lord of the Rings: The Fellowship of the Ring (kp 328), which has a franchise, similar titles and references. Relations come in four kinds:
similar: similar titles;related: the franchise, meaning sequels, prequels, spin-offs and remakes. They come by release year, like a timeline;reference: films this title references;referenced_in: where this title is mentioned.
Without parameters you get four sections of 10 titles each. relation=similar gives a flat, pageable list. An item is the same card as in the catalog, and the same filters and sorting work here.
When a title has no “similar” relations at all, relation=similar picks neighbours by its description: the same kind, the same genres, nearby years. Such a response carries basis: "content" and its total is null. These are neighbours, not recommendations; tell them apart from a regular list.
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
relationcsvKinds of relation, comma-separated. One kind gives a flat, pageable list.
similarrelatedreferencereferenced_inDefault:all four
Example:relation=relatedsubtypecsvNarrows the franchise (
related) to a kind of link.sequelprequelspinoffparentchronologyremakeoriginalversionExample:subtype=sequelsourceenumKeep the relations this catalog provided.
kinoriumkptmdbExample:source=kpfilters and sortThe catalog’s filters and sorting:
sort=-rating_imdb,votes_imdb.gte=100000,year.gte=2000. Details in Filters and sorting.fieldscsvWhich item fields to return, as in the catalog. IDs always come back.
Example:fields=title,yeargroupenumSplit the list into sections.
nonegives a flat list. How sections work is in Lists and pagination.relationnoneDefault:relationlangru | 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
countsobjectHow many relations of each kind:
similar,related,reference,referenced_in. Doesn’t depend onrelation, so you can label tabs with it.sourceandsubtypenarrow the counts too.basisstringcontentwhen similar titles were picked by description. A regular list has no such field.itemsarrayTitles. With sections, sections with their own
relation, labels,totalanditems.Show 26 fields
imdb_id · kp_id · tmdb_id · tmdb_tv_id · kinorium_idstring | nullThe title’s catalog IDs. Always returned, even with
fields.title_ru · title_en · title_originalstring | nullTitles: Russian, English and in the original language.
yearinteger | nullRelease year.
release_datestring | nullFirst release date,
YYYY-MM-DD.kindenumKind of title:
movie,series,mini_series,tv_show,anime,cartoon,short.poster_url_ru · poster_url_enstring | nullPoster for a Russian and an English storefront.
posters_by_sourceobjectEach source’s poster:
kp,tmdb,imdb,kinorium.rating_kp · rating_tmdb · rating_imdb · rating_kr · rating_letterboxdnumber | nullKinopoisk, TMDB, IMDb, Kinorium and Letterboxd ratings, 0–10 scale.
votes_kp · votes_tmdb · votes_imdbinteger | nullKinopoisk, TMDB and IMDb votes.
countriesarrayCountries:
code,name_ru,name_en.genresarrayGenres:
slug,name_ru,name_en.relationenumKind of relation.
subtypeenum | nullHow two franchise titles are linked.
nullmeans the source didn’t say.sequelprequelspinoffparentchronologyremakeoriginalversion
total · limit · offset · has_morePaging, as in every list. With filters,
totalisnull.
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.