idstring必須
The IMDb title identifier in tt<digits> format.
https://api.sandbase.ai/v1/api/imdb/title-base-queryGet base IMDb information for a title ID using selected language and country preferences. Use it to perform a lightweight title lookup or populate basic catalog context.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns basic IMDb data for one title: its name, poster image, release date, release year, and title type. It needs an IMDb title ID in tt<digits> format, such as tt0111161. An optional languageCountry value sets the language and country preferences.
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-base-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": {
"__typename": "Title",
"id": "tt0111161",
"originalTitleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"primaryImage": {
"__typename": "Image",
"height": 1800,
"id": "rm1690056449",
"url": "https://m.media-amazon.com/images/M/MV5BMDAyY2FhYjctNDc5OS00MDNlLThiMGUtY2UxYWVk…",
"width": 1200
},
"releaseDate": {
"__typename": "ReleaseDate",
"attributes": [],
"country": {
"id": "US"
},
"day": 14,
"displayableProperty": {
"qualifiersInMarkdownList": null
},
"month": 10,
"restriction": null,
"year": 1994
},
"releaseYear": {
"__typename": "YearRange",
"endYear": null,
"year": 1994
},
"titleText": {
"isOriginalTitle": true,
"text": "The Shawshank Redemption"
},
"titleType": {
"__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, for example tt0111161. |
title.titleText.text | The title name shown for the selected language and country preferences. |
title.originalTitleText.text | The title name in its original form. isOriginalTitle is true when it matches the displayed name. |
title.primaryImage.url | URL of the main poster image. |
title.primaryImage.width / title.primaryImage.height | Pixel size of the poster image. |
title.releaseDate.year / title.releaseDate.month / title.releaseDate.day | Parts of the release date as numbers. In this example the date is 14 October 1994. |
title.releaseDate.country.id | Country code the release date applies to, for example US. |
title.releaseYear.year / title.releaseYear.endYear | Start year of the title and its end year. endYear is null here, as for a single movie. |
title.titleType.id / title.titleType.text | Type of the title, for example movie and Movie. |
title.titleType.isSeries / title.titleType.isEpisode / title.titleType.canHaveEpisodes | Flags that tell you whether the title is a series, an episode, or can have episodes. |
tt followed by digits.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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-base-query" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "tt0111161",
"languageCountry": "en_US"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_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の保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
IMDb Base Infoこの 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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/imdb/title-base-query に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $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 に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。IMDb Base Info は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。IMDb の API アクセスを別途申請する必要はありません。