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

Douyin User Search (Search)

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

Returns a list of Douyin users matching search keywords. Supports filtering by fan count and user type with cursor-based pagination.

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

Playground

输入
Pagination cursor (0 for first page)
Fan count filter
User type filter
Search keyword, e.g., "AI"
Search session ID for pagination
输出示例
响应outputs · 7.0 KB · 153 行
[
  {
    "data": {
      "challenge_list": null,
      "cursor": 10,
      "extra": {
        "fatal_item_ids": [],
        "logid": "20260820174731A0930EB96408FF058A93",
        "now": 1787219252186,
        "scenes": null,
        "search_request_id": "",
        "start_ms": 1787219251703
      },
      "global_doodle_config": {
        "filter_settings": [
          {
            "default_index": 0,
            "items": [
              {
                "log_value": "fans_all",
                "title": "不限",
                "value": ""
              },
              {
                "log_value": "fans_0_1k",
                "title": "1000以下",
                "value": "0_1k"
              },
              {
                "log_value": "fans_1k_1w",
                "title": "1000-1w",
                "value": "1k_1w"
              },
              "… 3 more items in the full response"
            ],
            "log_name": "by_user_fans",
            "name": "douyin_user_fans",
            "title": "粉丝数量"
          },
          {
            "default_index": 0,
            "items": [
              {
                "log_value": "type_all",
                "title": "不限",
                "value": ""
              },
              {
                "log_value": "type_common",
                "title": "普通用户",
                "value": "common_user"
              },
              {
                "log_value": "type_enterprise",
                "title": "企业认证",
                "value": "enterprise_user"
              },
              "… 1 more items in the full response"
            ],
            "log_name": "by_user_type",
            "name": "douyin_user_type",
            "title": "用户类型"
          }
        ],
        "filter_show_dot": 1640995200,
        "keyword": "猫咪"
      },
      "has_more": 1,
      "input_keyword": "猫咪",
      "log_pb": {
        "impr_id": "20260820174731A0930EB96408FF058A93",
        "stab_extra": {
          "traffic_identification": "normal"
        }
      },
      "music_list": null,
      "myself_user_id": "0",
      "qc": "",
      "rid": "20260820174731A0930EB96408FF058A93",
      "status_code": 0,
      "type": 1,
      "user_list": [
        {
          "baikes": null,
          "challenges": null,
          "dynamic_patch": {
            "height": 80,
            "origin_type": 4,
            "raw_data": "{\"is_private_letter\":null,\"is_red_phone_number\":null,\"phone_number_encrypted\":null,\"user_info\":{\"uid\":\"1794056268286942\",\"nickname\":\"猫咪\",\"gender\":2,\"avatar_larger\":{\"uri\":\"1080x1080/aweme-avatar/tos-cn-avt-0015_a53d8c295078e44ca8ab0c2e77891023\",\"url_list\":[\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_a53d8c295078e44ca8ab0c2e77891023.webp?from=2956013662\",\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_a53d8c295078e44ca8ab0c2e77891023.jpeg?from=2956013662\"],\"width\":720,\"height\":720},\"avatar_thumb\":{\"uri\":\"100x100/aweme-avatar/tos-cn-avt-0015_a53d…",
            "schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsearch%2Ffe%2Fdouyin%2Fmorphling_high%2Fchannel_user%2Findex%2Ftemplate.js&ab_params=channel_user_use_user_cell,channel_user_unified,follower_count_str_exp&fe_enable_preserve_data=1"
          },
          "effects": null,
          "fandoms": null,
          "items": null,
          "mix_list": null,
          "musics": null,
          "position": null,
          "product_info": null,
          "product_list": null,
          "shop_product_info": null,
          "uniqid_position": null,
          "userSubLightApp": null,
          "user_service_info": null
        },
        {
          "baikes": null,
          "challenges": null,
          "dynamic_patch": {
            "height": 80,
            "origin_type": 4,
            "raw_data": "{\"phone_number_encrypted\":null,\"user_info\":{\"uid\":\"2089530227432043\",\"nickname\":\"小猫咪🐱💰\",\"gender\":0,\"avatar_larger\":{\"uri\":\"1080x1080/aweme-avatar/tos-cn-avt-0015_dcc4de8a53f233a990bd64238905ccb8\",\"url_list\":[\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_dcc4de8a53f233a990bd64238905ccb8.webp?from=2956013662\",\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_dcc4de8a53f233a990bd64238905ccb8.jpeg?from=2956013662\"],\"width\":720,\"height\":720},\"avatar_thumb\":{\"uri\":\"100x100/aweme-avatar/tos-cn-avt-0015_dcc4de8a53f233a990bd64238905ccb8\",\"url_list\":[\"http…",
            "schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsearch%2Ffe%2Fdouyin%2Fmorphling_high%2Fchannel_user%2Findex%2Ftemplate.js&ab_params=channel_user_use_user_cell,channel_user_unified,follower_count_str_exp&fe_enable_preserve_data=1"
          },
          "effects": null,
          "fandoms": null,
          "items": null,
          "mix_list": null,
          "musics": null,
          "position": null,
          "product_info": null,
          "product_list": null,
          "shop_product_info": null,
          "uniqid_position": null,
          "userSubLightApp": null,
          "user_service_info": null
        },
        {
          "baikes": null,
          "challenges": null,
          "dynamic_patch": {
            "height": 80,
            "origin_type": 4,
            "raw_data": "{\"is_private_letter\":null,\"is_red_phone_number\":null,\"phone_number_encrypted\":null,\"user_info\":{\"uid\":\"95501388889\",\"nickname\":\"开挂猫咪秀\",\"gender\":2,\"avatar_larger\":{\"uri\":\"1080x1080/aweme-avatar/mosaic-legacy_28535000304824fdbe34e\",\"url_list\":[\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_28535000304824fdbe34e.webp?from=2956013662\",\"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/mosaic-legacy_28535000304824fdbe34e.jpeg?from=2956013662\"],\"width\":720,\"height\":720},\"avatar_thumb\":{\"uri\":\"100x100/aweme-avatar/mosaic-legacy_28535000304824fdbe34e\",\"url_list\":[\"https://p3.…",
            "schema": "aweme://lynxview/?channel=morphling_high&bundle=channel_user%2Findex%2Ftemplate.js&group=morphling_high&dynamic=0&surl=https%3A%2F%2Flf-dy-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fsearch%2Ffe%2Fdouyin%2Fmorphling_high%2Fchannel_user%2Findex%2Ftemplate.js&ab_params=channel_user_use_user_cell,channel_user_unified,follower_count_str_exp&fe_enable_preserve_data=1"
          },
          "effects": null,
          "fandoms": null,
          "items": null,
          "mix_list": null,
          "musics": null,
          "position": null,
          "product_info": null,
          "product_list": null,
          "shop_product_info": null,
          "uniqid_position": null,
          "userSubLightApp": null,
          "user_service_info": null
        },
        "… 7 more items in the full response"
      ]
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Douyin User Search (Search) API

Returns a page of Douyin accounts that match a search keyword. It needs a keyword, and you can add douyin_user_fans and douyin_user_type filters. The response also lists the available filter values.

Use cases

  • Find Douyin creators in a niche by searching a topic keyword.
  • Narrow a creator search to accounts in a given fan count bracket such as 1k_1w.
  • Separate enterprise accounts from ordinary users with the enterprise_user and common_user filters.
  • Collect account IDs from search results to look up full profiles later.

Request

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

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

Parameters

NameTypeRequiredDescription
cursorintegerNoPagination cursor (0 for first page)
douyin_user_fansstringNoFan count filter
douyin_user_typestringNoUser type filter
keywordstringNoSearch keyword, e.g., "AI"
search_idstringNoSearch session ID for pagination

Example response

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

{
  "challenge_list": null,
  "cursor": 10,
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261103153222488FACFCB253505A7FC1",
    "now": 1793691142460,
    "scenes": null,
    "search_request_id": "",
    "start_ms": 1793691142071
  },
  "global_doodle_config": {
    "filter_settings": [
      {
        "default_index": 0,
        "items": [
          {
            "log_value": "fans_all",
            "title": "不限",
            "value": ""
          }
        ],
        "log_name": "by_user_fans",
        "name": "douyin_user_fans",
        "title": "粉丝数量"
      }
    ],
    "filter_show_dot": 1640995200,
    "keyword": "猫咪"
  },
  "has_more": 1,
  "input_keyword": "猫咪",
  "log_pb": {
    "impr_id": "20261103153222488FACFCB253505A7FC1",
    "stab_extra": {
      "traffic_identification": "normal"
    }
  },
  "music_list": null,
  "myself_user_id": "0",
  "qc": "",
  "rid": "20261103153222488FACFCB253505A7FC1",
  "status_code": 0
}

Response fields

FieldMeaning
user_list[]One search result per entry. Each entry holds a dynamic_patch object.
user_list[].dynamic_patch.raw_dataA JSON string with the account details for the result. It includes user_info with the account uid, nickname and gender. Parse the string to read these values.
user_list[].dynamic_patch.schemaAn aweme:// deep link string for the result card template in the Douyin app.
user_list[].dynamic_patch.origin_type / user_list[].dynamic_patch.heightDisplay values for the result card. Both are numbers.
has_moreShows 1 when more results exist after this page.
cursorThe cursor value to send for the next page.
input_keywordThe keyword the search used.
global_doodle_config.filter_settings[].nameThe request parameter a filter maps to, such as douyin_user_fans or douyin_user_type.
global_doodle_config.filter_settings[].items[].valueThe value to send for that filter. An empty string means no filter. The title field holds the Chinese label.
status_codeStatus of the search. 0 appears in the sample response.

Notes

  • Send cursor as 0 for the first page. For the next page, send the cursor value from the response.
  • Pass the same keyword and filters on every page. Use search_id to keep the search session across pages.
  • Filter values come from global_doodle_config.filter_settings[].items[].value, for example 0_1k, 1k_1w, common_user and enterprise_user.
  • The uid inside dynamic_patch.raw_data is a numeric ID string. For a newer version of this search, see Douyin User Search (V2).

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 User Search (Search) API?

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

Douyin User Search (Search) API 的价格是多少?

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

Douyin User Search (Search) API 接受哪些参数?

无需参数。 可选:cursor (integer), douyin_user_fans (string), douyin_user_type (string), keyword (string) 和 search_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin User Search (Search) API 返回什么?

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

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

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