idstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
idstringobrigatórioThe IMDb title identifier in tt<digits> format.
languageCountrystringLanguage and country preferences.
Padrão: "en_US"
Valores possíveis: en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
IMDb Plot SummaryEsta API IMDb | $0.007143 por chamada | JSON |
IMDb | $0.007143 por chamada | JSON |
IMDb | $0.007143 por chamada | JSON |
IMDb | $0.007143 por chamada | JSON |
IMDb | $0.007143 por chamada | JSON |
IMDb | $0.007143 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/imdb/title-plot-query com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.007143 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: id (string). Opcionais: languageCountry (um de en_US, fr_CA, fr_FR, de_DE, hi_IN, it_IT, pt_BR, es_ES, es_US, es_MX). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. IMDb Plot Summary funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do IMDb separadamente.