Titles with a genre keyword, by lifetime gross
Titles tagged with a genre keyword, 100 a page: rank, title, lifetime gross, max theaters, opening, release date, distributor. Pass next_offset back as offset; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Box Office Mojo API: 23 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
idrequired | string | Genre keyword id (sg4208980225, from /boxofficemojo/v1/genres) or a link. Example: sg4208980225 |
area | string | Market code (DE, GB, JP, FR, CN ...; see /boxofficemojo/v1/markets); domestic (US and Canada) by default. |
offset | integer | Row offset (from next_offset). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/boxofficemojo/v1/genre?id=sg4208980225" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/boxofficemojo/v1/genre",
params={"id": "sg4208980225"},
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/boxofficemojo/v1/genre");
url.searchParams.set("id", "sg4208980225");
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).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"id": "sg4208980225","area": "domestic","offset": 0,"name": "Genre Keyword: Foreign Language","url": "https://www.boxofficemojo.com/genre/sg4208980225/","count": 100,"columns": ["rank","title","… 6 more"],"items": [{"rank": 1,"title": "Crouching Tiger, Hidden Dragon","title_title_id": "tt0190332","lifetime_gross": 128078872,"max_theaters": 2027,"opening": 663205,"open_th": 16,"release_date": "Fri Dec 8, 2000","release_date_date": "2000-12-08","distributor": "Sony Pictures Classics","distributor_company_id": "co0014453"},{"rank": 2,"title": "Life Is Beautiful","title_title_id": "tt0118799","lifetime_gross": 57247384,"max_theaters": 1136,"opening": 118920,"open_th": 6,"release_date": "Fri Oct 23, 1998","release_date_date": "1998-10-23","distributor": "Miramax","distributor_company_id": "co0022594"},"… 98 more"],"next_offset": 100,"cached": false,"credits_used": 1}