用户评价摘要
使用所选语言和国家/地区偏好检索指定标题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_user_reviews_summary_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_user_reviews_summary_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_user_reviews_summary_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,耗时 1941 ms · 请求参数 {"id": "tt0111161", "language_country": "en_US"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "imdb.title_user_reviews_summary_query_v1",
"cost_usd": 0.01,
"data": {
"code": 0,
"data": {
"title": {
"id": "tt0111161",
"canRate": {
"isRatable": true
},
"ratingsSummary": {
"aggregateRating": 9.3
},
"featuredReviews": {
"edges": [
{
"node": {
"id": "rw0348302",
"text": {
"originalText": {
"plainText": "Misery and Stand By Me were the best adaptations up until this one, now you can add Shawshank to that list.\n\nThis is simply one of the best films ever made and I know I am not the first to say that an…"
}
},
"title": {
"id": "tt0111161"
},
"author": {
"id": "ur0355122",
"nickName": "baumer"
},
"spoiler": false,
"summary": {
"originalText": "Stephen King's best adapted movie"
},
"language": "en-US",
"__typename": "Review",
"helpfulness": {
"score": 0.8118204109702614,
"upVotes": 883,
"downVotes": 174,
"__typename": "ReviewHelpfulness"
},
"authorRating": 10,
"submissionDate": "1999-07-13"
}
},
{
"node": {
"id": "rw0348718",
"text": {
"originalText": {
"plainText": "I have never seen such an amazing film since I saw The Shawshank Redemption. Shawshank encompasses friendships, hardships, hopes, and dreams. And what is so great about the movie is that it moves you…"
}
},
"title": {
"id": "tt0111161"
},
"author": {
"id": "ur1005460",
"nickName": "speedreid"
},
"spoiler": false,
"summary": {
"originalText": "Prepare to be moved"
},
"language": "en-US",
"__typename": "Review",
"helpfulness": {
"score": 0.8605951149633823,
"upVotes": 1742,
"downVotes": 247,
"__typename": "ReviewHelpfulness"
},
"authorRating": null,
"submissionDate": "2001-02-08"
}
},
"… +3"
]
}
}
},
"message": null,
"requestId": "8e4e1fe7fa8243b9a405f441a1291254",
"recordTime": "2026-11-08T08:00:32.568046912",
"requestParams": {
"body": null,
"query": {
"id": "tt0111161",
"languageCountry": "en_US"
}
}
}
}