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

Douyin Multi Search

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

Returns multi-type search results across videos, users, music, and hashtags on Douyin. Supports filtering by keyword, sort order, content type, duration, and post date.

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

Playground

输入
Backtrace for pagination, obtained from the last response
Content type filter
Pagination cursor (0 for the first page, use the last response cursor for subsequent pages)
Video duration filter
Search keyword, e.g., "Artificial Intelligence"
Publish time filter
Search ID used for pagination
Sorting method
输出就绪

您的输出将显示在这里

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

API README

Douyin Multi Search API

Returns Douyin search results for a keyword as a list of result cards, mostly videos, plus pagination state and suggested search words. The main input is keyword. Optional filters cover sort order, content type, video duration and publish time.

Use cases

  • Pull the top video cards for a keyword such as 猫咪 to see what Douyin ranks first.
  • Collect the suggested search words returned for a keyword to find related topics.
  • Page through results with cursor, search_id and backtrace to build a larger set of videos for one keyword.
  • Narrow results by duration or post date with filter_duration and publish_time to study recent or short videos.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/search/multi-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Parameters

NameTypeRequiredDescription
backtracestringNoBacktrace for pagination, obtained from the last response
content_typestringNoContent type filter
cursorintegerNoPagination cursor (0 for the first page, use the last response cursor for subsequent pages)
filter_durationstringNoVideo duration filter
keywordstringNoSearch keyword, e.g., "Artificial Intelligence"
publish_timestringNoPublish time filter
search_idstringNoSearch ID used for pagination
sort_typestringNoSorting method

Example response

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

[
  13270
]

Response fields

FieldMeaning
business_config.business_data[].card_idType of each result card. The sample value douyin.doctype_aweme_video marks a video card.
business_config.business_data[].data.aweme_infoVideo details for a video card. It includes the video author, an authentication_token and the other video metadata.
business_config.business_data[].data.aweme_info.authorProfile data of the account that posted the video, including avatar images with url_list links.
business_config.business_data[].log.search_result_idID of the search result, which matches the video ID used in pitaya_common_feature.doc_feature[].search_result_id.
business_config.has_moreShows whether more results exist. The sample value is 1.
business_config.next_page.cursorCursor value to send as cursor when you request the next page.
business_config.next_page.search_idSearch ID to send as search_id when you request the next page.
business_config.backtracePagination token to send as backtrace when you request the next page.
business_config.extra.guide_search_words[].wordSuggested related search word, such as 视频, 图片 or 头像.
business_config.extra.impression_server_log.queryThe keyword the search ran for.

Notes

  • For the first page, send cursor as 0 and leave search_id and backtrace empty.
  • For the next page, copy business_config.next_page.cursor, business_config.next_page.search_id and business_config.backtrace into cursor, search_id and backtrace.
  • The response is a JSON array. The search data is in the second element, under business_config.
  • To search one content type only, try Douyin Video Search, Douyin User Search (V2) or Douyin Music Search.

Pricing

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

探索更多

相关 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 Multi Search API?

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

Douyin Multi Search API 的价格是多少?

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

Douyin Multi Search API 接受哪些参数?

无需参数。 可选:backtrace (string), content_type (string), cursor (integer), filter_duration (string), keyword (string) 和 publish_time (string) 以及另外 2 项。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin Multi Search API 返回什么?

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

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

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