Chart Rankings
Retrieves the IMDb Top 250 movie or TV chart selected by ranking type using language and country preferences. Use it to monitor chart positions or compare highly ranked titles.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
rankings_chart_type |
Required | string | Type of rankings chart to retrieve. Available Values: - `TOP_250`: Top 250 Movies - `TOP_250_TV`: Top 250 TV Shows | TOP_250 |
TOP_250TOP_250_TV |
language_country |
Optional | string | Language and country preferences. Available Values: - `en_US`: English (US) - `fr_CA`: French (Canada) - `fr_FR`: French (France) - `de_DE`: German (Germany) - `hi_IN`: Hindi (India) - `it_IT`: Italian (Italy) - `pt_BR`: Portuguese (Brazil) - `es_ES`: Spanish (Spain) - `es_US`: Spanish (US) - `es_MX`: Spanish (Mexico) | en_US |
en_USfr_CAfr_FRde_DEhi_INit_ITpt_BRes_ESes_USes_MX |
Code samples
curl -G "https://api.mofa-ai.com/v1/imdb/title_chart_rankings_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'rankings_chart_type=TOP_250' \
--data-urlencode 'language_country=en_US'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/imdb/title_chart_rankings_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"rankings_chart_type": "TOP_250",
"language_country": "en_US",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/imdb/title_chart_rankings_v1");
url.search = new URLSearchParams({
rankings_chart_type: "TOP_250",
language_country: "en_US",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
Example response
There is no example response for this endpoint yet.