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

Douyin XingTu KOL Audience

API 文档
https://api.sandbase.ai/v1/api/douyin/xingtu/kol-fans-portrait-v1

Get the audience portrait of a Douyin KOL from XingTu: fan age, gender, region, device and interest distributions.

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

Playground

输入
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`
Fans Type, supports the following parameters: _1: Fans Portrait - Default; _2: Fans Group Portrait; _5: Iron Fans Portrait
输出示例
响应outputs · 1.9 KB · 81 行
[
  {
    "data": {
      "base_resp": {
        "status_code": 0,
        "status_message": ""
      },
      "distributions": [
        {
          "description": "18到23岁居多,占比34%",
          "distribution_list": [
            {
              "distribution_key": "24-30",
              "distribution_value": "175378"
            },
            {
              "distribution_key": "50+",
              "distribution_value": "82955"
            },
            {
              "distribution_key": "31-40",
              "distribution_value": "155328"
            },
            "… 2 more items in the full response"
          ],
          "image": [
            "18到23岁居多"
          ],
          "origin_type": 1,
          "type": 2,
          "type_display": "年龄分布"
        },
        {
          "description": "一线居多,占比31%",
          "distribution_list": [
            {
              "distribution_key": "三线",
              "distribution_value": "169066"
            },
            {
              "distribution_key": "五线",
              "distribution_value": "92861"
            },
            {
              "distribution_key": "二线",
              "distribution_value": "158147"
            },
            "… 2 more items in the full response"
          ],
          "image": [
            "一线居多"
          ],
          "origin_type": 5,
          "type": 32,
          "type_display": "城市等级分布"
        },
        {
          "description": "男性居多,占比54%",
          "distribution_list": [
            {
              "distribution_key": "female",
              "distribution_value": "403577"
            },
            {
              "distribution_key": "male",
              "distribution_value": "474927"
            }
          ],
          "image": [
            "男性居多"
          ],
          "origin_type": 0,
          "type": 1,
          "type_display": "性别分布"
        },
        "… 7 more items in the full response"
      ],
      "last_update_time": "1791283846"
    }
  }
]

示例

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

API README

Douyin XingTu KOL Audience API

Returns the audience portrait of a Douyin creator from XingTu. It needs a XingTu kolId and returns fan distributions such as age, province and city tier.

Use cases

  • Check whether a creator's fan age range matches your target customers before booking a campaign.
  • Compare the province split of several KOLs to pick one for a region-specific promotion.
  • Review the city tier mix of a creator's fans to judge fit for a premium or mass-market product.
  • Switch fansType to compare the general fan base with the fan group or loyal fan portrait.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/kol-fans-portrait-v1" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"kolId": "7038603512770461703"}'

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

Parameters

NameTypeRequiredDescription
kolIdstringYesUser 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
fansTypestringNoFans Type, supports the following parameters: _1: Fans Portrait - Default; _2: Fans Group Portrait; _5: Iron Fans Portrait

Example response

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": "18到23岁居多,占比34%",
      "distribution_list": [
        {
          "distribution_key": "50+",
          "distribution_value": "84120"
        }
      ],
      "image": [
        "18到23岁居多"
      ],
      "origin_type": 1,
      "type": 2,
      "type_display": "年龄分布"
    }
  ],
  "last_update_time": "1793691185"
}

Response fields

FieldMeaning
distributions[]One block per audience dimension. The response shows age, province and city tier blocks.
distributions[].type_displayName of the dimension, for example 年龄分布 (age), 省份分布 (province) or 城市等级分布 (city tier).
distributions[].descriptionShort text summary of the block, such as which age group or provinces have the largest share and their percentages.
distributions[].distribution_list[].distribution_keyLabel of one bucket, such as an age range like 24-30, a province name or a city tier like 二线.
distributions[].distribution_list[].distribution_valueValue for that bucket, returned as a string. It looks like a fan count, and the buckets can be compared with each other.
distributions[].type / origin_typeNumeric codes for the dimension. Use them to identify a block without matching on the display text.
distributions[].image[]Short label text for the block, such as the top age group or top provinces.
last_update_timeTimestamp of the portrait as a string of Unix seconds.
base_resp.status_code / base_resp.status_messageStatus of the call. 0 with an empty message appears on success.

Notes

Pricing

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

探索更多

相关 APIs

全部 APIs
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

指南:Best Douyin API in 2026: Pricing Compared

问题

常见问题

如何使用 Douyin XingTu KOL Audience API?

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

Douyin XingTu KOL Audience API 的价格是多少?

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

Douyin XingTu KOL Audience API 接受哪些参数?

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

Douyin XingTu KOL Audience API 返回什么?

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

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

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