详情
使用所选语言和国家/地区偏好检索指定标题ID的IMDb标题详情。用于支持详细的标题研究或丰富影视目录。
参数
| 参数 | 必填 | 类型 | 说明 | 示例 | 可选值 |
|---|---|---|---|---|---|
id |
必填 | string | IMDb标题标识符,格式为tt<数字>。 | tt0111161 |
— |
language_country |
可选 | string | 语言与国家/地区偏好。 可用值: - `en_US`: 英语(美国) - `fr_CA`: 法语(加拿大) - `fr_FR`: 法语(法国) - `de_DE`: 德语(德国) - `hi_IN`: 印地语(印度) - `it_IT`: 意大利语(意大利) - `pt_BR`: 葡萄牙语(巴西) - `es_ES`: 西班牙语(西班牙) - `es_US`: 西班牙语(美国) - `es_MX`: 西班牙语(墨西哥) | en_US |
en_USfr_CAfr_FRde_DEhi_INit_ITpt_BRes_ESes_USes_MX |
代码示例
curl -G "https://api.mofa-ai.com/v1/imdb/title_details_query_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'id=tt0111161' \
--data-urlencode 'language_country=en_US'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/imdb/title_details_query_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"id": "tt0111161",
"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_details_query_v1");
url.search = new URLSearchParams({
id: "tt0111161",
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);
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
响应示例
采集于 2026-11-08,耗时 1581 ms · 请求参数 {"id": "tt0111161", "language_country": "en_US"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "imdb.title_details_query_v1",
"cost_usd": 0.01,
"data": {
"code": 0,
"data": {
"title": {
"id": "tt0111161",
"akas": {
"edges": [
{
"node": {
"country": {
"id": "MX",
"text": "Mexico",
"__typename": "DisplayableCountry"
},
"language": null,
"attributes": [
{
"id": "alternativeTitle",
"text": "Alternative Title"
}
],
"displayableProperty": {
"value": {
"id": "Sueño de fuga",
"plainText": "Sueño de fuga"
},
"__typename": "DisplayableTitleAkaProperty"
}
}
}
],
"total": 64,
"pageInfo": {
"endCursor": "MA==",
"__typename": "PageInfo",
"hasNextPage": true,
"startCursor": "MA==",
"hasPreviousPage": false
},
"__typename": "AkaConnection"
},
"runtime": {
"seconds": 8520
},
"titleText": {
"text": "The Shawshank Redemption",
"isOriginalTitle": true
},
"titleType": {
"id": "movie",
"text": "Movie",
"isSeries": false,
"isEpisode": false,
"__typename": "TitleType",
"categories": [
{
"id": "movie",
"text": "Movie",
"value": "movie"
}
],
"canHaveEpisodes": false,
"displayableProperty": {
"value": {
"plainText": ""
}
}
},
"__typename": "Title",
"releaseDate": {
"day": 14,
"year": 1994,
"month": 10,
"country": {
"id": "US"
},
"__typename": "ReleaseDate",
"attributes": [],
"restriction": null,
"displayableProperty": {
"qualifiersInMarkdownList": null
}
},
"releaseYear": {
"year": 1994,
"endYear": null,
"__typename": "YearRange"
},
"primaryImage": {
"id": "rm1690056449",
"url": "https://m.media-amazon.com/images/M/MV5BMDAyY2FhYjctNDc5OS00MDNlLThiMGUtY2UxYWVkNGY2ZjljXkEyXkFqcGc@._V1_.jpg",
"width": 1200,
"height": 1800,
"__typename": "Image"
},
"officialLinks": {
"edges": [
{
"node": {
"url": "https://www.facebook.com/shawshankredemptionfilm/",
"label": "Official Facebook",
"__typename": "ExternalLink",
"externalLinkRegion": null
}
},
{
"node": {
"url": "https://www.warnerbros.com/movies/shawshank-redemption",
"label": "Warner Bros.",
"__typename": "ExternalLink",
"externalLinkRegion": {
"id": "US",
"text": "United States",
"__typename": "DisplayableCountry"
}
}
}
]
},
"spokenLanguages": {
"spokenLanguages": [
{
"id": "en",
"text": "English",
"__typename": "SpokenLanguage",
"displayableProperty": {
"value": {
"id": "English",
"plainText": "English"
},
"__typename": "DisplayableTitleSpokenLanguageProperty"
}
}
]
},
"filmingLocations": {
"edges": [
{
"node": {
"id": "lc0342942",
"attributes": [
{
"text": "Exterior"
},
{
"text": "rural town of \"Buxton\" where \"Red\" journeys to; shot of bus leaving with \"Red\" near end of film"
}
],
"interestScore": {
"__typename": "InterestScore",
"usersVoted": 57,
"usersInterested": 57
},
"displayableProperty": {
"value": {
"id": "Butler, Ohio, USA",
"plainText": "Butler, Ohio, USA"
},
"__typename": "DisplayableTitleFilmingLocationProperty"
}
}
}
],
"total": 21,
"pageInfo": {
"endCursor": "bGMwMzQyOTQy",
"__typename": "PageInfo",
"hasNextPage": true,
"startCursor": "bGMwMzQyOTQy",
"hasPreviousPage": false
},
"__typename": "FilmingLocationConnection"
},
"alternateVersions": {
"edges": [
{
"node": {
"text": {
"plainText": "This film was produced independently by Castle Rock Entertainment, but distributed by Columbia Pictures, which placed their logo at the beginning of the film. After the first video release, Castle Roc…"
}
}
}
],
"total": 5,
"pageInfo": {
"endCursor": "Z0xrd3FsSWRDQlNqaFJyYy9qU2UzcWlHN21OSmtsa1MxM3pwVWlpdERtdz0=",
"__typename": "PageInfo",
"hasNextPage": true,
"startCursor": "Z0xrd3FsSWRDQlNqaFJyYy9qU2UzcWlHN21OSmtsa1MxM3pwVWlpdERtdz0=",
"hasPreviousPage": false
},
"__typename": "AlternateVersionConnection"
},
"countriesOfOrigin": {
"countries": [
{
"id": "US",
"text": "United States",
"__typename": "CountryOfOrigin"
}
]
},
"originalTitleText": {
"text": "The Shawshank Redemption",
"isOriginalTitle": true
}
}
},
"message": null,
"requestId": "7bafb83751e2475da453e0d9312d6fd2",
"recordTime": "2026-11-08T08:00:33.794666167",
"requestParams": {
"body": null,
"query": {
"id": "tt0111161",
"languageCountry": "en_US"
}
}
}
}