idstringbắt buộc
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-did-you-know-queryGet IMDb 'Did You Know' information for a title ID using selected language and country preferences. Use it to research title trivia and add editorial context.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns IMDb trivia, goofs, quotes, crazy credits and soundtrack entries for one title. It needs an IMDb title ID in tt<digits> format, such as tt0111161, and takes an optional languageCountry value.
usersInterested to show the most liked facts first.curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "tt0111161"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The IMDb title identifier in tt<digits> format. |
languageCountry | string | No | Language and country preferences. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"title": {
"__typename": "Title",
"crazyCredits": {
"edges": [
{
"node": {
"__typename": "CrazyCredit",
"id": "cz0007591",
"interestScore": {
"__typename": "InterestScore",
"usersInterested": 221,
"usersVoted": 226
},
"text": {
"plainText": "The man who cried and was beaten when Andy first arrived is listed and credited …"
}
}
}
]
},
"goofs": {
"edges": [
{
"node": {
"__typename": "Goof",
"category": {
"id": "anachronism",
"text": "Anachronisms"
},
"id": "gf1546878",
"interestScore": {
"__typename": "InterestScore",
"usersInterested": 124,
"usersVoted": 133
},
"isSpoiler": false,
"text": {
"plainText": "Circa 1963, Heywood is shown listening to the record \"24 of Hank Williams' Great…"
}
}
}
]
},
"goofsCount": {
"total": 113
},
"originalTitleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"quotes": {
"edges": [
{
"node": {
"__typename": "TitleQuote",
"id": "qt0470748",
"interestScore": {
"__typename": "InterestScore",
"usersInterested": 1597,
"usersVoted": 1608
},
"isSpoiler": false,
"lines": [
{
"characters": [
{
"character": "Andy Dufresne",
"name": {
"id": "nm0000209"
}
}
],
"stageDirection": "to Red",
"text": "I guess it comes down to a simple choice, really. Get busy living, or get busy d…"
}
]
}
}
]
},
"quotesCount": {
"total": 119
},
"soundtrack": {
"edges": [
{
"node": {
"__typename": "Track",
"comments": [
{
"plainText": "by Jack Lawrence"
}
],
"id": "sn0691810",
"text": "If I Didn't Care"
}
}
]
},
"titleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"trivia": {
"edges": [
{
"node": {
"__typename": "TitleTrivia",
"category": {
"id": "uncategorized"
},
"id": "tr1008159",
"interestScore": {
"__typename": "InterestScore",
"usersInterested": 4399,
"usersVoted": 4417
},
"isSpoiler": false,
"relatedNames": null,
"text": {
"plainText": "Andy and Red's opening chat in the prison yard, in which Red is throwing a baseb…"
},
"trademark": null
}
}
]
},
"triviaCount": {
"total": 244
}
}
}
| Field | Meaning |
|---|---|
title.trivia.edges[].node.text.plainText | The text of one trivia entry. |
title.trivia.edges[].node.isSpoiler | Whether the trivia entry is marked as a spoiler. Quotes and goofs carry the same flag. |
title.goofs.edges[].node.text.plainText | The text of one goof. |
title.goofs.edges[].node.category.text | The goof category label, such as Anachronisms. The matching category.id is a lowercase code. |
title.quotes.edges[].node.lines[] | The lines of one quote. Each line has text, an optional stageDirection, and characters[] with the character name and the name id. |
title.crazyCredits.edges[].node.text.plainText | The text of one crazy credit, which is an odd or notable detail in the end credits. |
title.soundtrack.edges[].node.text / title.soundtrack.edges[].node.comments[].plainText | The track title and its credit notes, such as composer, performer or label. |
usersInterested / usersVoted | Under each interestScore. usersInterested is the number of voters who found the entry interesting, out of usersVoted total voters. |
title.triviaCount.total / title.goofsCount.total / title.quotesCount.total | The total number of trivia entries, goofs and quotes for the title. The edges lists hold only a part of them. |
title.titleText.text / title.originalTitleText.text | The title in the requested language and the original title. |
tr1008159 for trivia, gf1546878 for goofs, qt0470748 for quotes and cz0007591 for crazy credits.characters[].name.id uses the nm<digits> format, which is the IMDb name ID.total counts with the number of edges returned to see how many entries are not in the response.$0.007143 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "tt0111161",
"languageCountry": "en_US"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
idstringbắt buộcThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
Mặc định: "en_US"
Giá trị có thể dùng: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
IMDb 'Did You Know' InsightsAPI này IMDb | $0.007143 mỗi lần gọi | JSON |
IMDb | $0.007143 mỗi lần gọi | JSON |
IMDb | $0.007143 mỗi lần gọi | JSON |
IMDb | $0.007143 mỗi lần gọi | JSON |
IMDb | $0.007143 mỗi lần gọi | JSON |
IMDb | $0.007143 mỗi lần gọi | JSON |
Hướng dẫn:Best IMDb API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.007143 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: id (string). Tùy chọn: languageCountry (một trong số en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. IMDb 'Did You Know' Insights chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của IMDb.