Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

IMDb 'Did You Know' Insights

API 文件
https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query

Get IMDb 'Did You Know' information for a title ID using selected language and country preferences. Use it to research title trivia and add editorial context.

價格
$0.007143美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填

Playground

輸入
The IMDb title identifier in tt<digits> format.
Language and country preferences.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

IMDb 'Did You Know' Insights API

Returns IMDb trivia, goofs, quotes, crazy credits and soundtrack entries for one title. It needs an IMDb title ID in tt<digits> format, such as tt0111161, and takes an optional languageCountry value.

Use cases

  • Pull trivia and quotes for a film to write editorial copy or a fan page.
  • Rank trivia by usersInterested to show the most liked facts first.
  • List goofs by category to build a continuity-error section for a movie.
  • Show soundtrack credits next to a title in a music discovery app.

Request

curl -X POST "https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query" \
  -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": {
    "__typename": "Title",
    "crazyCredits": {
      "edges": [
        {
          "node": {
            "__typename": "CrazyCredit",
            "id": "cz0007591",
            "interestScore": {
              "__typename": "InterestScore",
              "usersInterested": 221,
              "usersVoted": 226
            },
            "text": {
              "plainText": "The man who cried and was beaten when Andy first arrived is listed and credited …"
            }
          }
        }
      ]
    },
    "goofs": {
      "edges": [
        {
          "node": {
            "__typename": "Goof",
            "category": {
              "id": "anachronism",
              "text": "Anachronisms"
            },
            "id": "gf1546878",
            "interestScore": {
              "__typename": "InterestScore",
              "usersInterested": 124,
              "usersVoted": 133
            },
            "isSpoiler": false,
            "text": {
              "plainText": "Circa 1963, Heywood is shown listening to the record \"24 of Hank Williams' Great…"
            }
          }
        }
      ]
    },
    "goofsCount": {
      "total": 113
    },
    "originalTitleText": {
      "isOriginalTitle": true,
      "text": "The Shawshank Redemption"
    },
    "quotes": {
      "edges": [
        {
          "node": {
            "__typename": "TitleQuote",
            "id": "qt0470748",
            "interestScore": {
              "__typename": "InterestScore",
              "usersInterested": 1597,
              "usersVoted": 1608
            },
            "isSpoiler": false,
            "lines": [
              {
                "characters": [
                  {
                    "character": "Andy Dufresne",
                    "name": {
                      "id": "nm0000209"
                    }
                  }
                ],
                "stageDirection": "to Red",
                "text": "I guess it comes down to a simple choice, really. Get busy living, or get busy d…"
              }
            ]
          }
        }
      ]
    },
    "quotesCount": {
      "total": 119
    },
    "soundtrack": {
      "edges": [
        {
          "node": {
            "__typename": "Track",
            "comments": [
              {
                "plainText": "by Jack Lawrence"
              }
            ],
            "id": "sn0691810",
            "text": "If I Didn't Care"
          }
        }
      ]
    },
    "titleText": {
      "isOriginalTitle": true,
      "text": "The Shawshank Redemption"
    },
    "trivia": {
      "edges": [
        {
          "node": {
            "__typename": "TitleTrivia",
            "category": {
              "id": "uncategorized"
            },
            "id": "tr1008159",
            "interestScore": {
              "__typename": "InterestScore",
              "usersInterested": 4399,
              "usersVoted": 4417
            },
            "isSpoiler": false,
            "relatedNames": null,
            "text": {
              "plainText": "Andy and Red's opening chat in the prison yard, in which Red is throwing a baseb…"
            },
            "trademark": null
          }
        }
      ]
    },
    "triviaCount": {
      "total": 244
    }
  }
}

Response fields

FieldMeaning
title.trivia.edges[].node.text.plainTextThe text of one trivia entry.
title.trivia.edges[].node.isSpoilerWhether the trivia entry is marked as a spoiler. Quotes and goofs carry the same flag.
title.goofs.edges[].node.text.plainTextThe text of one goof.
title.goofs.edges[].node.category.textThe goof category label, such as Anachronisms. The matching category.id is a lowercase code.
title.quotes.edges[].node.lines[]The lines of one quote. Each line has text, an optional stageDirection, and characters[] with the character name and the name id.
title.crazyCredits.edges[].node.text.plainTextThe text of one crazy credit, which is an odd or notable detail in the end credits.
title.soundtrack.edges[].node.text / title.soundtrack.edges[].node.comments[].plainTextThe track title and its credit notes, such as composer, performer or label.
usersInterested / usersVotedUnder each interestScore. usersInterested is the number of voters who found the entry interesting, out of usersVoted total voters.
title.triviaCount.total / title.goofsCount.total / title.quotesCount.totalThe total number of trivia entries, goofs and quotes for the title. The edges lists hold only a part of them.
title.titleText.text / title.originalTitleText.textThe title in the requested language and the original title.

Notes

  • Take the title ID from the IMDb title URL, or from another title API such as IMDb Base Info.
  • Each entry has its own ID, for example tr1008159 for trivia, gf1546878 for goofs, qt0470748 for quotes and cz0007591 for crazy credits.
  • Quote characters[].name.id uses the nm<digits> format, which is the IMDb name ID.
  • Compare the total counts with the number of edges returned to see how many entries are not in the response.

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.007143JSON
IMDb每次呼叫 $0.007143JSON
IMDb每次呼叫 $0.007143JSON
IMDb每次呼叫 $0.007143JSON
IMDb每次呼叫 $0.007143JSON
IMDb每次呼叫 $0.007143JSON

指南:Best IMDb API in 2026: Pricing Compared

問題

常見問題

我要如何使用 IMDb 'Did You Know' Insights API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/imdb/title-did-you-know-query。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

IMDb 'Did You Know' Insights API 的費用是多少?

每次 $0.007143,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

IMDb 'Did You Know' Insights API 接受哪些參數?

必要: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 會列出每個欄位。

IMDb 'Did You Know' Insights API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 IMDb 開發者帳號或 API 金鑰嗎?

不需要。IMDb 'Did You Know' Insights 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 IMDb API 存取權。