idstringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
idstringrequeridoThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
Valor predeterminado: "en_US"
Valores posibles: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
IMDb Top Cast and CrewEsta API IMDb | $0.007143 por llamada | JSON |
IMDb | $0.007143 por llamada | JSON |
IMDb | $0.007143 por llamada | JSON |
IMDb | $0.007143 por llamada | JSON |
IMDb | $0.007143 por llamada | JSON |
IMDb | $0.007143 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crew con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.007143 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: id (string). Opcionales: languageCountry (una de en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. IMDb Top Cast and Crew funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de IMDb por separado.