idstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
idstringobbligatorioThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
Predefinito: "en_US"
Valori possibili: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
IMDb Countries of OriginQuesta API IMDb | $0.007143 per chiamata | JSON |
IMDb | $0.007143 per chiamata | JSON |
IMDb | $0.007143 per chiamata | JSON |
IMDb | $0.007143 per chiamata | JSON |
IMDb | $0.007143 per chiamata | JSON |
IMDb | $0.007143 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/imdb/title-countries-of-origin con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.007143 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: id (string). Facoltativi: languageCountry (uno tra en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. IMDb Countries of Origin funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API IMDb.