kolIdstring必填
User kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
https://api.sandbase.ai/v1/api/douyin/xingtu/kol-audience-portrait-v1Returns audience demographic and portrait insights for a Douyin Xingtu creator. Requires a creator identifier to retrieve detailed follower profile data.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "苹果手机占比41%, 消费能力较好",
"distribution_list": [
{
"distribution_key": "荣耀",
"distribution_value": "2256032"
},
{
"distribution_key": "红米",
"distribution_value": "1598547"
},
{
"distribution_key": "iPhone",
"distribution_value": "13136988"
},
"… 5 more items in the full response"
],
"image": [
"苹果手机较多"
],
"origin_type": 3,
"type": 8,
"type_display": "设备品牌分布"
},
{
"description": "一线居多,占比39%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "3294995"
},
{
"distribution_key": "四线",
"distribution_value": "4075951"
},
{
"distribution_key": "三线",
"distribution_value": "5667644"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "18到23岁居多,占比32%",
"distribution_list": [
{
"distribution_key": "41-50",
"distribution_value": "2034880"
},
{
"distribution_key": "50+",
"distribution_value": "2320806"
},
{
"distribution_key": "31-40",
"distribution_value": "6389893"
},
"… 2 more items in the full response"
],
"image": [
"18到23岁居多"
],
"origin_type": 1,
"type": 2,
"type_display": "年龄分布"
},
"… 5 more items in the full response"
],
"last_update_time": "1790823788"
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns audience portrait data for a Douyin Xingtu creator, grouped into distributions such as interests, age and city tier. It needs the creator's Xingtu kolId.
last_update_time to track how a creator's audience profile looks over time.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/kol-audience-portrait-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kolId": "7048929565493690398"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
kolId | string | Yes | User kolId, can be obtained from the following interfaces: douyin/xingtu/xingtu-kolid-by-uid; douyin/xingtu/xingtu-kolid-by-sec-user-id; douyin/xingtu/xingtu-kolid-by-unique-id |
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个兴趣随拍(30%),亲子(10%),明星(10%)",
"distribution_list": [
{
"distribution_key": "随拍",
"distribution_value": "3"
}
],
"image": [
"随拍,亲子,明星居多"
],
"origin_type": 6,
"type": 64,
"type_display": "兴趣分布"
}
],
"last_update_time": "1793691190"
}
| Field | Meaning |
|---|---|
distributions[] | One block per portrait dimension. Each block holds a text summary, a list of buckets and a dimension label. |
distributions[].type_display | Name of the dimension, for example 兴趣分布 (interest), 年龄分布 (age) and 城市等级分布 (city tier). |
distributions[].description | Short text summary of the dimension, such as the top interests with percentages. The text is in Chinese. |
distributions[].distribution_list[].distribution_key | Label of one bucket, such as an interest name, an age range like 31-40, or a city tier like 三线. |
distributions[].distribution_list[].distribution_value | Value for that bucket, returned as a string. Compare it only with other buckets in the same list. |
distributions[].image[] | Short text caption for the dimension, such as 18到23岁居多. |
distributions[].type / distributions[].origin_type | Numeric codes for the dimension. Use type or type_display to pick the block you need. |
last_update_time | Unix timestamp in seconds, returned as a string, that marks the last update of this portrait. |
base_resp.status_code / base_resp.status_message | Status of the call. 0 with an empty message means it succeeded. |
kolId from Douyin XingTu KOL ID by User ID, Douyin XingTu kolId Lookup or Douyin XingTu KOL ID by Unique ID.description text can cover buckets that are not in distribution_list. In the sample, the age description says 18 to 23 is the largest group, but the list shows other ranges.type_display or type, not by array position.$0.02 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/kol-audience-portrait-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kolId": "6677767167234015243"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
kolIdstring必填User kolId, can be obtained from the following interfaces: `douyin/xingtu/xingtu-kolid-by-uid`; `douyin/xingtu/xingtu-kolid-by-sec-user-id`; `douyin/xingtu/xingtu-kolid-by-unique-id`
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "苹果手机占比41%, 消费能力较好",
"distribution_list": [
{
"distribution_key": "荣耀",
"distribution_value": "2256032"
},
{
"distribution_key": "红米",
"distribution_value": "1598547"
},
{
"distribution_key": "iPhone",
"distribution_value": "13136988"
},
"… 5 more items in the full response"
],
"image": [
"苹果手机较多"
],
"origin_type": 3,
"type": 8,
"type_display": "设备品牌分布"
},
{
"description": "一线居多,占比39%",
"distribution_list": [
{
"distribution_key": "五线",
"distribution_value": "3294995"
},
{
"distribution_key": "四线",
"distribution_value": "4075951"
},
{
"distribution_key": "三线",
"distribution_value": "5667644"
},
"… 2 more items in the full response"
],
"image": [
"一线居多"
],
"origin_type": 5,
"type": 32,
"type_display": "城市等级分布"
},
{
"description": "18到23岁居多,占比32%",
"distribution_list": [
{
"distribution_key": "41-50",
"distribution_value": "2034880"
},
{
"distribution_key": "50+",
"distribution_value": "2320806"
},
{
"distribution_key": "31-40",
"distribution_value": "6389893"
},
"… 2 more items in the full response"
],
"image": [
"18到23岁居多"
],
"origin_type": 1,
"type": 2,
"type_display": "年龄分布"
},
"… 5 more items in the full response"
],
"last_update_time": "1790823788"
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Douyin | 每次呼叫 $0.02 | JSON |
Douyin | 每次呼叫 $0.02 | JSON |
Douyin | 每次呼叫 $0.02 | JSON |
Douyin | 每次呼叫 $0.02 | JSON |
Douyin | 每次呼叫 $0.02 | JSON |
Douyin | 每次呼叫 $0.02 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/xingtu/kol-audience-portrait-v1。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.02,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:kolId (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Douyin Xingtu KOL Audience Portrait (V1) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。