sec_uidstring必填
User sec_id
https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-portrait-listReturns fan portrait metrics and demographic distribution data for a Douyin account using its secure user ID and portrait option filter.
[
{
"data": {
"code": 0,
"data": {
"option": "1",
"portrait": {
"key": "2000~2999",
"portrait_data": [
{
"name": "2000~2999",
"value": 0.24706867671691793
},
{
"name": "5000~5999",
"value": 0.18302003846392456
},
{
"name": "3000~3999",
"value": 0.12090080029778522
},
"… 8 more items in the full response"
]
},
"portrait_tgi": {
"key": "7000~7999",
"portrait_data": [
{
"name": "9000~9999",
"value": 139.0134481561822
},
{
"name": "1000~1999",
"value": 38.94340533411409
},
{
"name": "10000及以上",
"value": 64.83608401242549
},
"… 8 more items in the full response"
]
},
"user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
},
"extra": {
"now": 1791290505000
},
"message": ""
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns the fan portrait of a Douyin account as a share distribution and a TGI distribution across buckets. It needs the account's sec_uid and accepts an optional integer option to pick the portrait type.
portrait across creators to see which audience segment dominates each account.portrait_tgi to find which segment is over-represented in a creator's fans compared with the baseline.curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-portrait-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_id |
option | integer | No | Option |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"option": "1",
"portrait": {
"key": "2000~2999",
"portrait_data": [
{
"name": "2000~2999",
"value": 0.24579581073685258
}
]
},
"portrait_tgi": {
"key": "7000~7999",
"portrait_data": [
{
"name": "7000~7999",
"value": 166.5975572593203
}
]
},
"user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
},
"extra": {
"now": 1793691104000
},
"message": ""
}
| Field | Meaning |
|---|---|
data.option | The portrait option the response is for, returned as a string. The request sent no option, and the response shows 1. |
data.user_id | The sec_uid of the account the portrait belongs to. |
data.portrait.key | The name of the bucket with the highest share in portrait_data. |
data.portrait.portrait_data[].name | Bucket label, such as 2000~2999. The labels are ranges of numbers, and the response does not say what the numbers measure. |
data.portrait.portrait_data[].value | Share of fans in that bucket, as a decimal. For example 0.2458 is about 24.6 percent. |
data.portrait_tgi.key | The name of the bucket with the highest TGI value in portrait_tgi.portrait_data. |
data.portrait_tgi.portrait_data[].name | Bucket label for the TGI list. It uses the same range format as portrait. |
data.portrait_tgi.portrait_data[].value | TGI score for the bucket. A value above 100 would mean the bucket is over-represented, but the scale is not documented, so check it against your own data. |
sec_uid from an account list call such as Douyin Hot Account List or Douyin Hot Account Search.sec_uid is the only required parameter. The option value is an integer and the API does not list the allowed values.portrait_data lists in the response are sorted from highest to lowest value.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/hot-account-fans-portrait-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
sec_uidstring必填User sec_id
optionintegerOption
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"code": 0,
"data": {
"option": "1",
"portrait": {
"key": "2000~2999",
"portrait_data": [
{
"name": "2000~2999",
"value": 0.24706867671691793
},
{
"name": "5000~5999",
"value": 0.18302003846392456
},
{
"name": "3000~3999",
"value": 0.12090080029778522
},
"… 8 more items in the full response"
]
},
"portrait_tgi": {
"key": "7000~7999",
"portrait_data": [
{
"name": "9000~9999",
"value": 139.0134481561822
},
{
"name": "1000~1999",
"value": 38.94340533411409
},
{
"name": "10000及以上",
"value": 64.83608401242549
},
"… 8 more items in the full response"
]
},
"user_id": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"
},
"extra": {
"now": 1791290505000
},
"message": ""
}
}
]探索更多
| 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/billboard/hot-account-fans-portrait-list 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:sec_uid (string)。 可选:option (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Hot Account Fan Portrait 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。