o_author_idstring必填
Creator ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distributionReturns audience profile metrics for a Xingtu creator, including gender, age, geographic region, and interests based on creator ID.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "男性居多,占比50%",
"distribution_list": [
{
"distribution_key": "male",
"distribution_value": "6169425"
},
{
"distribution_key": "female",
"distribution_value": "6155171"
}
],
"image": [
"男性居多"
],
"origin_type": 0,
"type": 1,
"type_display": "性别分布"
},
{
"description": "一线居多,占比37%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "1048956"
},
{
"distribution_key": "二线",
"distribution_value": "2447991"
},
{
"distribution_key": "一线",
"distribution_value": "4399542"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "新锐白领居多,占比26%",
"distribution_list": [
{
"distribution_key": "资深中产",
"distribution_value": "649188"
},
{
"distribution_key": "Z世代",
"distribution_value": "2670083"
},
{
"distribution_key": "都市蓝领",
"distribution_value": "1177800"
},
"… 5 more items in the full response"
],
"image": [
"新锐白领居多"
],
"origin_type": 10,
"type": 1024,
"type_display": "八大人群分布"
},
"… 7 more items in the full response"
],
"last_update_time": "1790823903"
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns the audience profile of a Xingtu creator on Douyin as a list of distributions, such as interests, gender and audience groups. It needs the creator ID in o_author_id.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7029342444797820939"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator ID |
platform_channel | integer | No | Platform channel, default 1 |
platform_source | integer | No | Platform source, default 1 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "分布最多的3个兴趣随拍(53%),体育(9%),社会时政(8%)",
"distribution_list": [
{
"distribution_key": "随拍",
"distribution_value": "3138780"
}
],
"image": [
"随拍,体育,社会时政居多"
],
"origin_type": 6,
"type": 64,
"type_display": "兴趣分布"
}
],
"last_update_time": "1793691160"
}
| Field | Meaning |
|---|---|
distributions[] | One audience breakdown per item. Each item has a type, a description and a list of counts. |
distributions[].type_display | Name of the breakdown, for example 兴趣分布 (interests), 性别分布 (gender) or 八大人群分布 (eight audience groups). |
distributions[].type / origin_type | Numeric codes that identify the breakdown type. Use them to pick a breakdown in code instead of matching the display name. |
distributions[].description | Short summary text of the breakdown, such as which group is largest and its percentage share. |
distributions[].distribution_list[].distribution_key | Label of one category in the breakdown, such as an interest name, male or female, or an audience group name. |
distributions[].distribution_list[].distribution_value | Count for that category, returned as a string. Divide by the sum of the list to get a share. |
distributions[].image[] | Short text label that restates the main finding of the breakdown. |
last_update_time | Unix timestamp in seconds, returned as a string. |
base_resp.status_code / base_resp.status_message | Status of the call. 0 with an empty message means success. |
platform_source and platform_channel are optional integers and both default to 1.$0.002 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/xingtu-v2/author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "6677767167234015243"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
o_author_idstring必填Creator ID
platform_channelintegerPlatform channel, default 1
platform_sourceintegerPlatform source, default 1
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "男性居多,占比50%",
"distribution_list": [
{
"distribution_key": "male",
"distribution_value": "6169425"
},
{
"distribution_key": "female",
"distribution_value": "6155171"
}
],
"image": [
"男性居多"
],
"origin_type": 0,
"type": 1,
"type_display": "性别分布"
},
{
"description": "一线居多,占比37%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "1048956"
},
{
"distribution_key": "二线",
"distribution_value": "2447991"
},
{
"distribution_key": "一线",
"distribution_value": "4399542"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "新锐白领居多,占比26%",
"distribution_list": [
{
"distribution_key": "资深中产",
"distribution_value": "649188"
},
{
"distribution_key": "Z世代",
"distribution_value": "2670083"
},
{
"distribution_key": "都市蓝领",
"distribution_value": "1177800"
},
"… 5 more items in the full response"
],
"image": [
"新锐白领居多"
],
"origin_type": 10,
"type": 1024,
"type_display": "八大人群分布"
},
"… 7 more items in the full response"
],
"last_update_time": "1790823903"
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.002 | JSON |
Douyin | 每次呼叫 $0.01 | JSON |
Douyin | 每次呼叫 $0.003 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-fans-distribution。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.002,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:o_author_id (string)。 選填:platform_channel (integer) 和 platform_source (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Douyin Xingtu Author Fan Distribution 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。