idstringจำเป็น
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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก 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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
idstringจำเป็นThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
ค่าเริ่มต้น: "en_US"
ค่าที่เป็นไปได้: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
IMDb Plot SummaryAPI นี้ IMDb | $0.007143 ต่อการเรียก | JSON |
IMDb | $0.007143 ต่อการเรียก | JSON |
IMDb | $0.007143 ต่อการเรียก | JSON |
IMDb | $0.007143 ต่อการเรียก | JSON |
IMDb | $0.007143 ต่อการเรียก | JSON |
IMDb | $0.007143 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/imdb/title-plot-query โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.007143 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: id (string). ตัวเลือก: languageCountry (หนึ่งใน en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น IMDb Plot Summary ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง IMDb API แยกต่างหาก