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

Douyin Topic Search Suggestions

API 文件
https://api.sandbase.ai/v1/api/douyin/index/topic-suggest

Returns autocomplete topic suggestions based on a search query. Supports filtering by target platform such as Douyin or Toutiao.

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

Playground

輸入
Topic keyword
Platform, aweme=Douyin, toutiao=Toutiao
輸出範例
回應outputs · 490 B · 25 行
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      },
      "topic_list": [
        {
          "topic_id": "1576073697445901",
          "topic_name": "人工智能"
        },
        {
          "topic_id": "7693001864882686006",
          "topic_name": "港股人工智能光通信逆势走强"
        },
        {
          "topic_id": "1788749732212868",
          "topic_name": "人工智能与人类的未来"
        },
        "… 17 more items in the full response"
      ]
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Douyin Topic Search Suggestions API

Returns autocomplete topic suggestions for a search keyword. Each suggestion has a topic ID and a topic name. You send a keyword and can set app_name to choose Douyin or Toutiao.

Use cases

  • Fill a topic search box with suggestions as a user types a keyword.
  • Find the topic_id for a topic name before you pass it to another Douyin Index call.
  • Compare the topic names suggested for the same keyword on Douyin and on Toutiao.
  • Build a list of related topic names around a theme such as 人工智能.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/topic-suggest" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesTopic keyword
app_namestringNoPlatform, aweme=Douyin, toutiao=Toutiao

Example response

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

{
  "BaseResp": {
    "StatusCode": 0,
    "StatusMessage": ""
  },
  "topic_list": [
    {
      "topic_id": "1576073697445901",
      "topic_name": "人工智能"
    }
  ]
}

Response fields

FieldMeaning
topic_listList of suggested topics for the keyword. The first item in the sample is an exact match for the keyword.
topic_list[].topic_idID of the suggested topic, returned as a string.
topic_list[].topic_nameDisplay name of the suggested topic. It can be the keyword itself or a longer related name.
BaseResp.StatusCodeStatus code of the request. 0 in the sample response.
BaseResp.StatusMessageStatus text. It is an empty string in the sample response.

Notes

  • app_name accepts aweme for Douyin or toutiao for Toutiao. The default is aweme.
  • Treat topic_id as a string. The sample IDs have 16 to 19 digits.
  • To search topics in full instead of getting suggestions, call Douyin Topic Search.
  • To see what is trending now, call Douyin Current Hot Topics Leaderboard.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON
Douyin每次呼叫 $0.001JSON

指南:Best Douyin API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Douyin Topic Search Suggestions API?

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

Douyin Topic Search Suggestions API 的費用是多少?

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

Douyin Topic Search Suggestions API 接受哪些參數?

必要:keyword (string)。 選填:app_name(aweme, toutiao 之一)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Douyin Topic Search Suggestions API 會回傳什麼?

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

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

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