Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mohameodo/nano/llms.txt
Use this file to discover all available pages before exploring further.
/api/details retrieves full metadata for a movie, TV show, or specific TV season from the TMDB API. nano uses this endpoint to populate title pages, episode selectors, and the scrape pipeline’s adult-content check. The raw TMDB response is passed through directly, giving you access to the complete set of fields TMDB provides.
Request
Method:GETPath:
/api/details
The TMDB ID of the movie or TV show to fetch.
Media type. Must be
"movie" or "tv". Determines which TMDB endpoint is called (/movie/{id} vs. /tv/{id}).Season number for TV shows. When provided, the endpoint calls
/tv/{id}/season/{season} instead of /tv/{id}, returning season-level details including the episode list. Only applicable when type=tv.Response
Content-Type:application/json
The response body is the raw JSON returned by TMDB. The exact shape depends on the type and whether season is specified. Common fields include:
TMDB ID.
Movie title (movies only).
TV show or season name (TV only).
Plot summary.
Poster image path. Prefix with
https://image.tmdb.org/t/p/w500 to get the full URL.Backdrop/hero image path.
Array of
{ id, name } genre objects.TMDB community rating (0–10).
Runtime in minutes (movies only).
Array of season summary objects (TV show top-level only, not present on season requests).
Array of episode objects (only present when
season is specified).TMDB adult content flag. If
true, the endpoint returns HTTP 403 instead of the data (see below).Adult Content Blocking
If TMDB marks the requested title withadult: true, /api/details blocks the response and returns HTTP 403 with the following body:
Examples
Error Responses
| Status | Body | Cause |
|---|---|---|
400 | { "error": "Missing ID" } | The id parameter was not provided. |
403 | { "error": "Adult content blocked", "blocked": true, ... } | TMDB flagged the title as adult content. |
500 | { "error": "Failed to fetch TMDB" } | TMDB returned a non-OK status or the request failed. |