idstringrequerido
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-box-office-summaryGet the IMDb box-office summary for a title ID using selected language and country preferences. Use it to research reported theatrical performance or compare titles.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Returns the IMDb box-office summary for one title: budget, domestic gross, worldwide gross, and opening weekend gross. It needs an IMDb title ID in tt<digits> format, such as tt0111161.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-box-office-summary" \
-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",
"budget": {
"totalBudget": {
"__typename": "Money",
"amount": 25000000,
"currency": "USD"
}
},
"domesticGross": {
"__typename": "BoxOfficeGross",
"total": {
"__typename": "Money",
"amount": 28767189,
"currency": "USD"
}
},
"id": "tt0111161",
"openingWeekendGrosses": {
"edges": [
{
"node": {
"gross": {
"__typename": "BoxOfficeGross",
"total": {
"__typename": "Money",
"amount": 727327,
"currency": "USD"
}
},
"weekendStartDate": "1994-09-23"
}
}
],
"total": 1
},
"originalTitleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"releaseYear": {
"year": 1994
},
"titleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"worldwideGross": {
"__typename": "BoxOfficeGross",
"total": {
"__typename": "Money",
"amount": 29425588,
"currency": "USD"
}
}
}
}
| Field | Meaning |
|---|---|
title.id | The IMDb title ID that the figures belong to. |
title.titleText.text / title.originalTitleText.text | The display title and the original title. isOriginalTitle is true when the title shown is the original one. |
title.releaseYear.year | The year the title was released. |
title.budget.totalBudget.amount | The reported production budget. currency gives the currency code, such as USD. |
title.domesticGross.total.amount | The reported domestic box-office gross, with its currency in currency. |
title.worldwideGross.total.amount | The reported worldwide box-office gross, with its currency in currency. |
title.openingWeekendGrosses.edges[].node.gross.total.amount | The gross for an opening weekend, with its currency in currency. |
title.openingWeekendGrosses.edges[].node.weekendStartDate | The start date of that opening weekend, in YYYY-MM-DD format. |
title.openingWeekendGrosses.total | The number of opening weekend entries for the title. |
tt0111161.languageCountry is optional and defaults to en_US. Other values are fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, and es_MX.$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-box-office-summary" \
-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 Box Office SummaryEsta 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-box-office-summary 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 Box Office Summary 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.