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

Douyin Batch User Profile (V2)

API 文档
https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2

Retrieves user profile details in batches for up to 50 Douyin accounts at once. Pass comma-separated secure user identifiers to return account data.

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

Playground

输入
User sec_user_id list, separated by commas, up to 50
输出示例
响应outputs · 26 B · 5 行
[
  {
    "data": []
  }
]

示例

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

API README

Douyin Batch User Profile (V2) API

Returns a list of Douyin account profiles, one object per account. The input is sec_user_ids, a comma-separated string of up to 50 sec_user_id values.

Use cases

  • Pull nicknames, handles and bios for a roster of Douyin creators in one call.
  • Check which accounts in a list still use the default avatar or an empty signature.
  • Map sec_uid values to the numeric uid and short_id of each account.
  • Group a list of accounts by store_region to see where each one is registered.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sec_user_ids": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE,MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"}'

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

Parameters

NameTypeRequiredDescription
sec_user_idsstringYesUser sec_user_id list, separated by commas, up to 50

Example response

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

[
  {
    "account_cert_info": "{}",
    "avatar_signature": "",
    "avatar_small": {
      "uri": "168x168/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
      "url_list": [
        "https://p11.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce…"
      ]
    },
    "avatar_thumb": {
      "uri": "100x100/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
      "url_list": [
        "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_d8306450a4b…"
      ]
    },
    "birthday_hide_level": 1,
    "commerce_user_level": 0,
    "custom_verify": "",
    "enterprise_verify_reason": "",
    "follow_status": 0,
    "follower_status": 0,
    "has_e_account_role": false,
    "im_activeness": 1
  }
]

Response fields

FieldMeaning
[].sec_uidThe secure user ID of the account. It matches the value you sent in sec_user_ids, so you can join results back to your input.
[].uid / [].short_idThe numeric user ID and the short ID of the account, both returned as strings.
[].unique_idThe public Douyin handle of the account. When the owner has not set a custom one, it equals short_id.
[].nicknameThe display name of the account.
[].signatureThe bio text of the account. It can be an empty string and can contain line breaks.
[].avatar_thumb.url_list / [].avatar_small.url_listImage URLs for the 100x100 and 168x168 avatars. Each list holds several mirror URLs for the same image.
[].store_regionA region code for the account, such as cn-hn or cn-zj.
[].verification_type / [].custom_verify / [].enterprise_verify_reasonVerification data for the account. In this sample the type is 0 and both text fields are empty.
[].follow_status / [].follower_status / [].is_blockThe relation between the calling session and the account. In this sample all are 0 or false.
[].with_commerce_entry / [].commerce_user_levelCommerce flags for the account. In this sample the entry is false and the level is 0.

Notes

  • The response is a JSON array, not an object. Each item is one account.
  • Send up to 50 comma-separated values in sec_user_ids. A sec_user_id starts with MS4wLjAB.
  • To get a sec_user_id from a homepage link, call Douyin sec_user_ids from URLs (Batch). To convert a numeric uid, call Douyin UID to Sec User ID.
  • Some fields appear only on some accounts. For example, bless_end_time, im_bubble_id and im_bubble_exp are present for one account and missing for the other.

Pricing

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

探索更多

相关 APIs

全部 APIs
API价格响应
Douyin$0.15 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.001 每次调用JSON
Douyin$0.03 每次调用JSON

指南:Best Douyin API in 2026: Pricing Compared

问题

常见问题

如何使用 Douyin Batch User Profile (V2) API?

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

Douyin Batch User Profile (V2) API 的价格是多少?

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

Douyin Batch User Profile (V2) API 接受哪些参数?

必填:sec_user_ids (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Douyin Batch User Profile (V2) API 返回什么?

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

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

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