sec_user_idstring必填
User sec_user_id
https://api.sandbase.ai/v1/api/douyin/app-v3/user-profileReturns profile information and follower statistics for a specified Douyin user based on their unique secure user identifier.
[
{
"data": {
"extra": {
"fatal_item_ids": null,
"logid": "202608201745417A01EED3FEFAB1F77A20",
"now": 1787219141000,
"search_request_id": null
},
"log_pb": {
"impr_id": "202608201745417A01EED3FEFAB1F77A20"
},
"status_code": 2,
"status_msg": null,
"user": null
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns profile data for one Douyin user, including avatar images, cover images, video count and follower count. It needs the user's sec_user_id.
follower_count of a creator over time to measure audience growth.aweme_count before pulling its video list.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_user_id | string | Yes | User sec_user_id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": null,
"logid": "202611031531419AC4E1CB78CA9D11D6BF",
"now": 1793691101000,
"search_request_id": null
},
"log_pb": {
"impr_id": "202611031531419AC4E1CB78CA9D11D6BF"
},
"status_code": 0,
"status_msg": null,
"user": {
"account_cert_info": "{}",
"apple_account": 0,
"avatar_168x168": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c…"
],
"width": 720
},
"avatar_is_digged": false,
"avatar_larger": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"url_list": [
"https://p3.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_9186d2f6f9…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c745843",
"url_list": [
"https://p3.douyinpic.com/aweme-avatar/tos-cn-avt-0015_9186d2f6f96963551bd89aaa2c…"
],
"width": 720
},
"aweme_count": 92,
"aweme_count_correction_threshold": -1,
"birthday": "",
"birthday_hide_level": 0
}
}
| Field | Meaning |
|---|---|
user.follower_count | Number of followers of the account. |
user.aweme_count | Number of videos (works) on the account. |
user.dongtai_count / user.favoriting_count / user.evaluation_count | Other count values on the profile. In this sample all three are 0. |
user.avatar_larger / user.avatar_medium / user.avatar_thumb | Avatar image objects in different sizes. Each has uri, width, height and a url_list of image links. |
user.avatar_larger.url_list[] | Image links for the avatar. Several links with different formats (heic, jpeg) can appear in one list. |
user.cover_url[].url_list[] | Links to the profile cover images of the account. These links contain x-expires and x-signature query values. |
user.cover_and_head_image_info.profile_cover_list[] | Profile cover entries with cover_url, dark_cover_color and light_cover_color. |
user.commerce_user_info.has_ads_entry | true when the account has an ads entry in its commerce info. |
user.follow_status | Follow relationship value for this user. It is 0 in this sample. |
status_code | 0 in this response, which is the success value seen here. |
sec_user_id exactly as given. It is a long string that starts with MS4wLjABAAAA.city, country and birthday, can be empty strings.sec_user_id to Douyin User Videos.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Use User Profile when you have the intended creator's sec_user_id and need a profile snapshot. Copy that identifier exactly; a display name, numeric uid, video aweme_id or profile URL is not this field. A name search is a separate task: confirm the intended account before choosing an identifier, rather than automatically selecting the first match.
The reference shows profile fields such as video counts and avatar information. Optional fields may be missing or empty, and one snapshot does not establish follower growth. Do not substitute zero for unavailable fields or use a public profile response as permission to contact the creator.
To inspect published content instead, choose User Videos with the same sec_user_id. It is a separate request; the profile example does not fetch posts automatically.
Already have a key? Keep SANDBASE_API_KEY in your local environment and open this page's API tab for the POST /v1/api/ request and Bearer header. Already connected an agent? Give it the selected endpoint and the creator's sec_user_id. For a new project, share the setup Skill, Markdown quickstart and your task. Ask it to make one request and save the response before adding any research workflow.
The saved Playground input may contain the placeholder example. Replace it with the intended creator's sec_user_id before running. The API tab uses a schema example for teaching when the saved value is a placeholder; that example is not a promise that the creator remains available. These public-data requests do not provide access to a private account, an account's management tools or TikTok's separate API.
From a completed SandBase response, read outputs[0].data. In the dated reference samples, Douyin uses integer status_code 0 for success, with a user object for the profile or an aweme_list array for videos. Check that provider status and the expected field before using the data; HTTP 200 alone is insufficient. Preserve missing fields as unknown and treat explicit zero counters as provider-returned values, not independently verified audience measurements.
Pricing checked on 2026-11-08: both selected endpoints list $0.001 per call and eligibility for the organization's 100 daily free data API calls, shared across eligible APIs and reset at 00:00 UTC. Eligibility is not remaining allowance. Inspect current pricing and quota before executing. This update made no new business calls. The Douyin Python integration guide separates the bounded first request from dated historical research.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
sec_user_idstring必填User sec_user_id
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"extra": {
"fatal_item_ids": null,
"logid": "202608201745417A01EED3FEFAB1F77A20",
"now": 1787219141000,
"search_request_id": null
},
"log_pb": {
"impr_id": "202608201745417A01EED3FEFAB1F77A20"
},
"status_code": 2,
"status_msg": null,
"user": null
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin | $0.001 每次调用 | 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/app-v3/user-profile 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。
必填:sec_user_id (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin User Profile (App V3) 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。
不行。这个 app-v3/user-profile schema 需要创作者的 sec_user_id 字符串。名字、数字 uid、视频 aweme_id 和 URL 都是不同输入。请确认目标账号,并原样复制其安全用户标识;按名称搜索是单独的请求。
因为已保存的示例里放的是占位符,不是可用的创作者标识。运行前请替换它。API 选项卡里的教学请求会在需要时使用 schema 示例;它不会修改已保存的快照,也不能保证示例账号当前可用。
不能。这只是一个提供方结果。请读取 outputs[0].data,检查 status_code 和 user 对象,并将不可用字段保留为未知。增长需要可比较的、有日期的观察;单条响应不能建立趋势。