keywordstring必填
The search keyword.
https://api.sandbase.ai/v1/api/douyin/search-imageSearch Douyin (TikTok China) image posts by keyword with search-session pagination. Omit searchId for the first page, then use the search ID from the previous response to continue.
您的输出将显示在这里
完成输入,然后点击运行。
Returns a page of Douyin image post search results for a keyword. Each result includes the post's author info and a rank within the search session. The only required input is keyword.
美食 to study what content ranks for it.searchId.curl -X POST "https://api.sandbase.ai/v1/api/douyin/search-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | The search keyword. |
searchId | string | No | Search ID returned by the previous response. Leave it empty for the first page. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"business_config": {
"ad_info": null,
"card_count": 7,
"extra_fresh_struct": null,
"feedback": null,
"feelgood_msg": {},
"filter_bar": null,
"general_search_config": {
"double_column_layout_type": 3
},
"has_more": 1,
"is_filter_search": 0,
"keyword": "美食",
"next_page": {
"cursor": 8,
"keyword": "美食",
"origin_query": "美食",
"poi_search_info": "",
"search_id": "202611031532144CDF780CB96549D598A8",
"search_request_id": "202611031532144CDF780CB96549D598A8"
},
"poi_search_info": ""
},
"business_data": [
{
"card_id": "douyin.doctype_aweme_image",
"data": {
"aweme_info": {
"activity_video_type": -1,
"ai_follow_images": null,
"ai_search_struct": {
"show_ai_entrance": true
},
"anchors": null,
"authentication_token": "MS4wLjAA…",
"author": {
"accept_private_policy": false,
"account_cert_info": "{}",
"account_region": "",
"ad_cover_url": null,
"allow_story_normal_like": false,
"apple_account": 0,
"authority_status": 0,
"avatar_168x168": {
"height": 720,
"uri": "168x168/aweme-avatar/tos-cn-i-0813c000-ce_owdMnECAvA9xYL8XAalAXPnpiA53iir6IQB1x",
"url_list": [
"https://p3.douyinpic.com/img/aweme-avatar/tos-cn-i-0813c000-ce_owdMnECAvA9xYL8XA…"
],
"width": 720
}
},
"author_mask_tag": 0,
"author_user_id": 73592891627
},
"aweme_list": null,
"card_id": "douyin.doctype_aweme_image",
"card_style_type": 1,
"card_type": 1,
"debug_data": {
"filter_debug_info_list": null
},
"debug_diff_info": {},
"doc_type": 303
},
"data_id": "0_7701644345287494948",
"log": {
"dcm": "search.natural.aweme_image.7701644345287494948.202611031532144CDF780CB96549D598A…",
"rank": "1",
"search_id": "202611031532144CDF780CB96549D598A8"
},
"type": 12
}
],
"extra": {
"fatal_item_ids": [],
"logid": "202611031532144CDF780CB96549D598A8",
"now": 1793691135000,
"scenes": null,
"search_request_id": "20261102EC5DDC68B137D03B"
},
"global_config": {},
"log": {
"impr_id": "202611031532144CDF780CB96549D598A8",
"search_id": "202611031532144CDF780CB96549D598A8",
"search_keyword": "美食"
},
"log_pb": {
"impr_id": "202611031532144CDF780CB96549D598A8"
},
"status_code": 0,
"time_cost": {
"stream_inner": 1055
}
}
| Field | Meaning |
|---|---|
business_data[] | One search result card. Each card is an image post (card_id is douyin.doctype_aweme_image). |
business_data[].data_id | Result ID in the form <position>_<post ID>, for example 0_7701644345287494948. The number after the underscore matches the post ID in log.dcm. |
business_data[].log.rank | Position of the result in the search, starting at 1. |
business_data[].log.dcm | Tracking string for the result. It contains the post ID and the search ID. |
business_data[].data.aweme_info.author_user_id | Numeric ID of the user who published the post. |
business_data[].data.aweme_info.author.avatar_168x168.url_list | Avatar image URLs of the author at 168x168, in webp and jpeg formats. |
business_config.has_more | Shows whether more results exist. 1 in this response. |
business_config.next_page.search_id / business_config.next_page.search_request_id | Search session ID to send as searchId to get the next page. |
business_config.next_page.cursor | Cursor position for the next page. It is 8 in this response. |
status_code | Status of the call. 0 in this response. |
searchId out on the first call. For later pages, send the value from business_config.next_page.search_id along with the same keyword.business_config.has_more is 1.aweme_info.author hold many more profile values than the ones listed here. Many of them are null or empty in image post results.data_id with Douyin Single Video Details or Douyin Video Detail.$0.028571 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/search-image" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "美食"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
keywordstring必填The search keyword.
searchIdstringSearch ID returned by the previous response. Leave it empty for the first page.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin | $0.028571 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/douyin/search-image 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.028571,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:keyword (string)。 可选:searchId (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Image Post Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。