{"openapi":"3.0.0","info":{"title":"IMDb Movies Series and People Data","version":"1.0.0","description":"IMDb movie and TV title details, ratings, vote counts, cast profiles, search results and Top 250 charts, one row per entity."},"servers":[{"url":"https://ah-imdb-com.opendata.best/s/imdb-com"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"Search IMDb titles, people and charts","description":"Query IMDb films, TV series, person profiles and curated charts by keyword, title ID, name ID or chart ID.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","search","titles","names","chart"],"description":"Mode. Leave on Automatic unless you want to force one data view. Automatic picks the view from the field you filled.","default":"auto"},"keywords":{"type":"array","items":{"type":"string"},"description":"Title, name or keyword searches. Anything you would type into IMDb's search box: a film or series title, a person's name or a keyword. Each term is one input, and maxResults applies to each of them.","example":["The Shawshank Redemption"]},"titleIds":{"type":"array","items":{"type":"string"},"description":"IMDb title IDs (tt…) or /title/ URLs. IMDb title IDs such as tt0111161, or full links such as https://www.imdb.com/title/tt0111161/. One row per title. Used only when the search field is empty."},"nameIds":{"type":"array","items":{"type":"string"},"description":"IMDb name IDs (nm…) or /name/ URLs. IMDb person IDs such as nm0000209, or full links such as https://www.imdb.com/name/nm0000209/. One row per person."},"chartIds":{"type":"array","items":{"type":"string"},"description":"Charts to read. IMDb charts to read, one row per ranked title. Currently supported: top (the IMDb Top 250 films)."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"includeAdult":{"type":"boolean","description":"Include adult titles. Let search results include titles IMDb marks as adult. Off by default.","default":false},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"mode":"search","keywords":["The Shawshank Redemption"],"includeAdult":false,"maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"source":{"type":"string"},"rowType":{"type":"string"},"id":{"type":"string"},"scrapedAt":{"nullable":true,"type":"string"},"searchTerm":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"titleType":{"nullable":true},"releaseYear":{"nullable":true},"runtimeSeconds":{"nullable":true,"type":"integer"},"ratingsSummary":{"nullable":true,"type":"object"},"certificate":{"nullable":true},"metascore":{"nullable":true,"type":"integer"},"plot":{"nullable":true,"type":"string"},"genres":{"nullable":true,"type":"array","items":{}},"image":{"nullable":true,"type":"object"},"primaryImage":{"nullable":true,"type":"object"},"directors":{"nullable":true,"type":"array","items":{}},"stars":{"nullable":true,"type":"array","items":{}},"winsTotal":{"nullable":true,"type":"integer"},"nominationsTotal":{"nullable":true,"type":"integer"},"keywords":{"nullable":true,"type":"array","items":{}},"countriesOfOrigin":{"nullable":true,"type":"array","items":{}},"spokenLanguages":{"nullable":true,"type":"array","items":{}},"rank":{"nullable":true,"type":"integer"},"name":{"nullable":true,"type":"string"},"professions":{"nullable":true,"type":"array","items":{}},"primaryProfessions":{"nullable":true,"type":"array","items":{}},"known_for":{"nullable":true,"type":"array","items":{}},"birthDate":{"nullable":true},"deathDate":{"nullable":true},"bio":{"nullable":true,"type":"string"},"totalCredits":{"nullable":true,"type":"integer"},"kind":{"nullable":true,"type":"string"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=chart_entry: id; rowType=name: id; rowType=search_hit: id; rowType=title: id."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}}}}}