IMDb person filmography
A person's full filmography, 50 credits per page, optionally only some roles (director, writer, actor, producer, self...) or one title type, oldest or newest first: title id, name, type, year, release date, rating and votes, genres, image, role, characters or jobs, episode count and attributes. roles gives the number of credits in each role. Pass next_cursor back as cursor; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
idrequired | string | The IMDb person id (nm...) or a person page URL. Example: nm0634240 |
category | string | Only these roles, comma separated: actor, actress, self, director, writer, producer, composer, cinematographer, editor, casting_director, production_designer, art_director, set_decorator, costume_designer, make_up_department, production_manager, assistant_director, art_department, sound_department, special_effects, visual_effects, stunts, camera_department, animation_department, casting_department, costume_department, editorial_department, location_management, music_department, script_department, transportation_department, miscellaneous, soundtrack, thanks, archive_footage, archive_sound, executive, manager, publicist, talent_agent, legal. |
title_type | movie | short | tvSeries | tvMiniSeries | tvMovie | tvSpecial | tvShort | tvEpisode | video | videoGame | musicVideo | podcastSeries | podcastEpisode | Only titles of this type. |
sort | newest | oldest | Order by release date (default: IMDb's own order). |
cursor | string | Pass next_cursor from the previous response. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/imdb/v1/person/filmography?id=nm0634240" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/imdb/v1/person/filmography",
params={"id": "nm0634240"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/imdb/v1/person/filmography");
url.searchParams.set("id", "nm0634240");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).