idstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
idstringwajibThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
Default: "en_US"
Nilai yang mungkin: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
IMDb Box Office SummaryAPI ini IMDb | $0.007143 per panggilan | JSON |
IMDb | $0.007143 per panggilan | JSON |
IMDb | $0.007143 per panggilan | JSON |
IMDb | $0.007143 per panggilan | JSON |
IMDb | $0.007143 per panggilan | JSON |
IMDb | $0.007143 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/imdb/title-box-office-summary dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.007143 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: id (string). Opsional: languageCountry (salah satu dari en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. IMDb Box Office Summary berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API IMDb secara terpisah.