Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

IMDb Top Cast and Crew

Документация API
https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crew

Get IMDb top cast and crew information for a title ID using selected language and country preferences. Use it to research principal talent or enrich title credits.

Цена
$0.007143USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 1 необязательных

Песочница

Ввод
The IMDb title identifier in tt<digits> format.
Language and country preferences.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

IMDb Top Cast and Crew API

Returns the top cast and crew credits for an IMDb title. It needs an IMDb title ID in tt<digits> format, such as tt0111161, and accepts an optional languageCountry value.

Use cases

  • Show the lead actors and their character names on a movie detail page.
  • Collect IMDb name IDs for the cast of a title, then use them to look up the same people elsewhere.
  • Pull profile photo URLs and sizes to build a cast gallery for a title.
  • Check how many credits a title lists in total before you decide how deep to go into its cast.

Request

curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crew" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "tt0111161"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
idstringYesThe IMDb title identifier in tt<digits> format.
languageCountrystringNoLanguage and country preferences.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "title": {
    "credits": {
      "__typename": "CreditConnection",
      "edges": [
        {
          "node": {
            "__typename": "Cast",
            "characters": [
              {
                "id": "Captain Hadley",
                "name": "Captain Hadley"
              }
            ],
            "name": {
              "__typename": "Name",
              "id": "nm0000317",
              "nameText": {
                "text": "Clancy Brown"
              },
              "primaryImage": {
                "__typename": "Image",
                "height": 2048,
                "id": "rm1769979648",
                "url": "https://m.media-amazon.com/images/M/MV5BMTUxODY3NjAzMF5BMl5BanBnXkFtZTcwMTQ5MjYw…",
                "width": 1418
              }
            }
          }
        }
      ],
      "total": 556
    },
    "id": "tt0111161",
    "principalCredits": [
      {
        "credits": [
          {
            "__typename": "Crew"
          }
        ]
      }
    ],
    "titleType": {
      "__typename": "TitleType",
      "canHaveEpisodes": false,
      "categories": [
        {
          "id": "movie",
          "text": "Movie",
          "value": "movie"
        }
      ],
      "displayableProperty": {
        "value": {
          "plainText": ""
        }
      },
      "id": "movie",
      "isEpisode": false,
      "isSeries": false,
      "text": "Movie"
    }
  }
}

Response fields

FieldMeaning
title.idThe IMDb title ID that the credits belong to.
title.titleType.text / title.titleType.idThe type of the title, such as Movie and movie.
title.titleType.isSeries / title.titleType.canHaveEpisodes / title.titleType.isEpisodeFlags that tell you whether the title is a series, can have episodes, or is an episode.
title.principalCredits[].credits[]The principal credits, grouped in a list of blocks. Each credit has a __typename of Cast or Crew. In this response the Crew entries hold only __typename, and the Cast entries hold the full details.
title.principalCredits[].credits[].name.nameText.textThe full name of a principal cast member.
title.principalCredits[].credits[].characters[].nameThe character that the principal cast member plays.
title.credits.edges[].node.name.nameText.textThe name of a person in the wider cast list.
title.credits.edges[].node.name.idThe IMDb name ID of the person, in nm<digits> format.
title.credits.edges[].node.characters[].nameThe character that this cast member plays.
title.credits.edges[].node.name.primaryImage.url / height / widthThe URL of the person's main photo, with its height and width in pixels as given by the values.
title.credits.totalThe total number of credits for the title. The edges list holds only part of them.

Notes

  • Find the title ID in the IMDb page URL, for example tt0111161 in imdb.com/title/tt0111161/.
  • 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.
  • Call IMDb Base Info or IMDb Plot Summary with the same ID for more details on the title.

Pricing

$0.007143 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
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

Руководства:Best IMDb API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API IMDb Top Cast and Crew?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/imdb/title-top-cast-and-crew, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API IMDb Top Cast and Crew?

$0.007143 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API IMDb Top Cast and Crew?

Обязательные: 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 на этой странице перечислены все поля.

Что возвращает API IMDb Top Cast and Crew?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика IMDb или API key?

Нет. IMDb Top Cast and Crew работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API IMDb.