idstringwajib
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-plot-queryGet IMDb plot information for a title ID using selected language and country preferences. Use it to review a movie or series storyline or enrich title descriptions.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns the plot summary for one IMDb title, plus the title type (such as movie). It needs an IMDb title ID in tt<digits> format, and you can pick a language and country with languageCountry.
title.plot.plotText.plainText text.fr_FR or es_MX to show localized synopses.curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-plot-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": {
"id": "tt0111161",
"plot": {
"id": "po1124508",
"plotText": {
"plainText": "After a banker is sentenced to life in Shawshank Prison, he forms an unlikely fr…"
}
},
"type": {
"__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 you requested, for example tt0111161. |
title.plot.id | The ID of the plot entry that the API returned, in po<digits> format. |
title.plot.plotText.plainText | The plot summary as plain text, with no markup. |
title.type.id / title.type.text | The title type as an ID and as a display label. In the sample, both say movie. |
title.type.categories[].id / title.type.categories[].text / title.type.categories[].value | The category the title belongs to, for example movie and Movie. |
title.type.isSeries / title.type.isEpisode / title.type.canHaveEpisodes | Boolean flags that show whether the title is a series, is an episode, or can contain episodes. |
tt<digits> format in an IMDb title URL, or from other IMDb APIs such as IMDb Base Info.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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-plot-query" \
-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 Plot 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-plot-query 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 Plot 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.