# 抖音 星图达人分析 API (douyin.xingtu_creator_analytics)

- Canonical page: https://everyinfra.com/douyin-api/xingtu_creator_analytics
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "xingtu_creator_analytics", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=douyin&action=xingtu_creator_analytics

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| douyin_id | not declared | yes | not declared | 达人个人主页展示的抖音号（unique_id），从普通 creator_search 结果取得；不是 secUid、昵称或星图 ID。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| creator_id | 星图商业达人稳定 ID；不是公开主页 user_id 或抖音号。 |
| creator_type | 星图返回的达人类型。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| average_play_count | 星图返回的平均播放量。 |
| city | 城市：作品行（search / user_posts / video）是作品发布城市，平台给的是拼音写法（如 Suzhou）；xingtu_creator_rankings 是达人所在城市。 |
| province | platform-native meaning |
| gender | 性别。 |
| category_id | 星图达人分类 ID。 |
| content_themes | 平台给达人标记的内容主题标签。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| creator_grade | 星图达人等级。 |
| is_xingtu_creator | 是否为星图达人。 |
| ecommerce_enabled | 是否具备星图电商能力标记。 |
| lowest_quote_cny | 星图展示的最低合作报价；单位未经核实，请勿直接用于报价。是报价，不是成交价。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "douyin",
  "action": "xingtu_creator_analytics",
  "params": {
    "douyin_id": "XiaoZhenlla"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "douyin",
        "action": "xingtu_creator_analytics",
        "params": {
            "douyin_id": "XiaoZhenlla",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "xingtu_creator_analytics",
  "results": {
    "creator_id": …,
    "creator_type": …,
    "follower_count": …,
    "average_play_count": …,
    "city": …,
    "province": …,
    "gender": …,
    "category_id": …,
    "content_themes": …,
    "tags": …,
    "creator_grade": …,
    "is_xingtu_creator": …,
    "ecommerce_enabled": …,
    "lowest_quote_cny": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=douyin
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
