idstringआवश्यक
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-countries-of-originGet countries of origin associated with an IMDb title ID using selected language and country preferences. Use it to enrich regional catalog metadata or support origin-based analysis.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the countries of origin for one IMDb title. You pass an IMDb title ID in tt<digits> format, and you can pick a language and country preference for the returned names.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-countries-of-origin" \
-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": {
"countriesOfOrigin": {
"countries": [
{
"__typename": "CountryOfOrigin",
"id": "US",
"text": "United States"
}
]
}
}
}
| Field | Meaning |
|---|---|
title.countriesOfOrigin.countries[] | List of countries of origin for the title. A title with several origin countries has several entries. |
title.countriesOfOrigin.countries[].id | Short country code, for example US. |
title.countriesOfOrigin.countries[].text | Country name as a display string, for example United States. |
title.countriesOfOrigin.countries[].__typename | Object type label. It is CountryOfOrigin for every entry. |
id in the IMDb title URL or in other IMDb APIs. It starts with tt and is followed by digits, such as tt0111161.languageCountry to one of en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US or 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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-countries-of-origin" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "tt0111161",
"languageCountry": "en_US"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
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 के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
IMDb Countries of Originयह API IMDb | $0.007143 प्रति कॉल | JSON |
IMDb | $0.007143 प्रति कॉल | JSON |
IMDb | $0.007143 प्रति कॉल | JSON |
IMDb | $0.007143 प्रति कॉल | JSON |
IMDb | $0.007143 प्रति कॉल | JSON |
IMDb | $0.007143 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/imdb/title-countries-of-origin पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.007143 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: id (string)। वैकल्पिक: languageCountry (en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। IMDb Countries of Origin SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से IMDb API access के लिए आवेदन करने की आवश्यकता नहीं है।