idstringbắt buộc
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crewGet IMDb top cast and crew information for a title ID using selected language and country preferences. Use it to research principal talent or enrich title credits.
Đầ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 the top cast and crew credits for an IMDb title. It needs an IMDb title ID in tt<digits> format, such as tt0111161, and accepts an optional languageCountry value.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crew" \
-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": {
"credits": {
"__typename": "CreditConnection",
"edges": [
{
"node": {
"__typename": "Cast",
"characters": [
{
"id": "Captain Hadley",
"name": "Captain Hadley"
}
],
"name": {
"__typename": "Name",
"id": "nm0000317",
"nameText": {
"text": "Clancy Brown"
},
"primaryImage": {
"__typename": "Image",
"height": 2048,
"id": "rm1769979648",
"url": "https://m.media-amazon.com/images/M/MV5BMTUxODY3NjAzMF5BMl5BanBnXkFtZTcwMTQ5MjYw…",
"width": 1418
}
}
}
}
],
"total": 556
},
"id": "tt0111161",
"principalCredits": [
{
"credits": [
{
"__typename": "Crew"
}
]
}
],
"titleType": {
"__typename": "TitleType",
"canHaveEpisodes": false,
"categories": [
{
"id": "movie",
"text": "Movie",
"value": "movie"
}
],
"displayableProperty": {
"value": {
"plainText": ""
}
},
"id": "movie",
"isEpisode": false,
"isSeries": false,
"text": "Movie"
}
}
}
| Field | Meaning |
|---|---|
title.id | The IMDb title ID that the credits belong to. |
title.titleType.text / title.titleType.id | The type of the title, such as Movie and movie. |
title.titleType.isSeries / title.titleType.canHaveEpisodes / title.titleType.isEpisode | Flags that tell you whether the title is a series, can have episodes, or is an episode. |
title.principalCredits[].credits[] | The principal credits, grouped in a list of blocks. Each credit has a __typename of Cast or Crew. In this response the Crew entries hold only __typename, and the Cast entries hold the full details. |
title.principalCredits[].credits[].name.nameText.text | The full name of a principal cast member. |
title.principalCredits[].credits[].characters[].name | The character that the principal cast member plays. |
title.credits.edges[].node.name.nameText.text | The name of a person in the wider cast list. |
title.credits.edges[].node.name.id | The IMDb name ID of the person, in nm<digits> format. |
title.credits.edges[].node.characters[].name | The character that this cast member plays. |
title.credits.edges[].node.name.primaryImage.url / height / width | The URL of the person's main photo, with its height and width in pixels as given by the values. |
title.credits.total | The total number of credits for the title. The edges list holds only part of them. |
tt0111161 in imdb.com/title/tt0111161/.languageCountry accepts en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US and es_MX. The default is en_US.$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-top-cast-and-crew" \
-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 Top Cast and CrewAPI 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-top-cast-and-crew 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 Top Cast and Crew 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.