Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Douyin Search keyword suggestions V2

API 文档
https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2

Fetch search keyword suggestions V2 on Douyin. Returns the platform data as structured JSON.

价格
$0.01美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 2 个可选

Playground

输入
The keyword to be suggested
Optional, the user's history search words (comma separated), affects the ranking of suggestions
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Douyin Search keyword suggestions V2 API

Returns search keyword suggestions from Douyin for a given keyword. It needs one input, keyword, and accepts an optional history_words list to influence the ranking.

Use cases

  • Build a keyword list for Douyin content by expanding a seed term into related search phrases.
  • Check which phrases Douyin offers when users start typing a topic such as 人工智能.
  • Compare suggestion lists for different seed words to find topic angles for video titles and hashtags.
  • Test how a set of history_words changes the order of suggestions for the same keyword.

Request

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

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

Parameters

NameTypeRequiredDescription
history_wordsstringNoOptional, the user's history search words (comma separated), affects the ranking of suggestions
keywordstringNoThe keyword to be suggested

Example response

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

{
  "items": [
    {
      "content": "人工智能比赛",
      "extra_info": {
        "poi_id": "",
        "poi_location_recall_log_id": "202611031532215E8A160EA19863E55352",
        "search_params": "{\"sug_poi_id\":\"\"}"
      },
      "pos": [
        {
          "begin": 0,
          "end": 3
        }
      ],
      "sug_type": "",
      "word_record": {
        "group_id": "6596440824983065859",
        "words_content": "人工智能比赛",
        "words_position": 0,
        "words_source": "sug"
      }
    }
  ],
  "raw_key": "sug_list",
  "words": [
    "人工智能比赛"
  ]
}

Response fields

FieldMeaning
items[].contentThe suggested search phrase as shown to the user.
items[].pos[].begin / items[].pos[].endStart and end character positions in content. In the sample they cover the part of the phrase that matches the input keyword.
items[].word_record.words_contentThe suggestion text inside the word record. It matches content in the sample.
items[].word_record.words_positionZero-based rank of the suggestion in the list.
items[].word_record.words_sourceWhere the suggestion came from. The sample shows sug.
items[].word_record.group_idNumeric ID string for the suggestion word group.
items[].sug_typeType label of the suggestion. It is an empty string in the sample.
items[].extra_info.search_paramsJSON string with extra search parameters, such as sug_poi_id. The sample value has an empty POI ID.
wordsPlain list of the suggestion phrases, in the same order as items.

Notes

  • The words array is the quickest way to get just the phrases. Use items when you need rank, match positions or IDs.
  • search_params is a JSON-encoded string, so parse it before reading its keys.
  • For another suggestion endpoint, see Douyin Search Suggestions. For hashtag suggestions, use Douyin Hashtag Suggestions.
  • To search videos for a chosen suggestion, pass it to Douyin Video Search.

Pricing

$0.01 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Douyin$0.01 每次调用JSON
Douyin$0.01 每次调用JSON
Douyin$0.01 每次调用JSON
Douyin$0.01 每次调用JSON
Douyin$0.01 每次调用JSON
Douyin$0.01 每次调用JSON

指南:Best Douyin API in 2026: Pricing Compared

问题

常见问题

如何使用 Douyin Search keyword suggestions V2 API?

向 https://api.sandbase.ai/v1/api/douyin/search/search-suggest-v2 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Douyin Search keyword suggestions V2 API 的价格是多少?

每次调用 $0.01,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Douyin Search keyword suggestions V2 API 接受哪些参数?

无需参数。 可选:keyword (string) 和 history_words (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin Search keyword suggestions V2 API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Douyin 开发者账户或 API key 吗?

不需要。Douyin Search keyword suggestions V2 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。