# Douyin Xingtu video performance API (douyin.xingtu_video_performance)

- Canonical page: https://everyinfra.com/en/douyin-api/xingtu_video_performance
- Endpoint: POST /api/v1/social with {"platform": "douyin", "action": "xingtu_video_performance", "params": {...}}
- Price: $0.016 per call ($16 per 1,000 requests); failed 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_video_performance

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| douyin_id | not declared | yes | not declared | The creator's visible Douyin ID (`unique_id`, from `creator_search`) or the 19-digit Xingtu `creator_id` returned by `xingtu_creator_search`. A creator who is not on Xingtu gives an empty result, which is not charged. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| creator_id | platform-native meaning |
| personal_videos | Three measures for personal videos (xingtu_video_performance): engagement_rate, play_count_median and completion_rate, each {value, platform_average (Xingtu's platform-wide average, the same for every creator), percentile (share of creators this one beats, 0 to 1)}; missing when there are no personal videos in the period. |
| xingtu_videos | The same three measures for Xingtu order videos (xingtu_video_performance), shaped like personal_videos; missing when there are no Xingtu order videos in the period. |
| latest_videos | On xingtu_recommended_videos, the newest videos on the creator's Xingtu page, shaped like signature_videos. On xingtu_video_performance, the latest personal videos (up to about 15), also with title, like_count, comment_count, share_count, duration_seconds and is_hot. |
| latest_xingtu_videos | The latest Xingtu order videos (xingtu_video_performance), shaped like latest_videos. |
| platform | Source platform identifier, the same as platform in the request (for example 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_video_performance",
  "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_video_performance",
        "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_video_performance",
  "results": {
    "creator_id": …,
    "personal_videos": …,
    "xingtu_videos": …,
    "latest_videos": …,
    "latest_xingtu_videos": …,
    "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
