# Douyin XingTu KOL Audience API

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

Source: https://www.sandbase.ai/apis/douyin/xingtu/kol-fans-portrait-v1
API reference: https://www.sandbase.ai/apis/douyin/xingtu/kol-fans-portrait-v1/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/xingtu/kol-fans-portrait-v1`
- Price: $0.03 per call
- Capabilities: api, douyin
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/douyin/xingtu/kol-fans-portrait-v1` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `kolId` | string | yes |  |
| `fansType` | string | no |  |

## FAQ

### How do I use the Douyin XingTu KOL Audience API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu/kol-fans-portrait-v1 with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Douyin XingTu KOL Audience API cost?

$0.03 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Douyin XingTu KOL Audience API accept?

Required: kolId (string). Optional: fansType (string). The Parameters table and the Playground on this page list every field.

### What does the Douyin XingTu KOL Audience API return?

A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.

### Do I need a Douyin developer account or API key?

No. Douyin XingTu KOL Audience runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.

## README

### Douyin XingTu KOL Audience API

Pass a XingTu `kolId` and get the demographics of the creator's fans.

#### Use cases

- Check that a creator's audience matches your target customers.
- Compare audiences across KOLs.
- Plan region-specific campaigns.

#### Request

```bash
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"}'
```

#### Parameters

| 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-k… |
| `fansType` | string | No | Fans Type, supports the following parameters: _1: Fans Portrait - Default; _2: Fans Group Portrait; _5: Iron Fans Portr… |

#### Example response

Real response for the request above, trimmed to the main fields. User names and long IDs are masked.

```json
{
  "distributions": [
    {
      "type_display": "年龄分布",
      "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"
        }
      ]
    },
    "…"
  ]
}
```

#### Notes

- `fansType`: `_1` fans portrait (default), `_2` fan-group portrait, `_5` loyal fans.

#### Related APIs

- [Douyin XingTu KOL Profile](/model/douyin/xingtu/kol-base-info-v1): Get the XingTu (Douyin creator marketplace) profile of a KOL: followers, location, category tags, online status and available collaboration types.
- [Douyin XingTu KOL Cost Metrics](/model/douyin/xingtu/kol-cp-info-v1): Get expected campaign metrics for a Douyin KOL from XingTu: expected views, CPM and CPE estimates, and hot-video counts.
- [Douyin XingTu KOL Price](/model/douyin/xingtu/kol-service-price-v1): Get the XingTu rate card of a Douyin KOL: price per collaboration type (sponsored video, live and more), settlement type and industry tags.
