# Douyin Xingtu connected-user sources API (douyin.xingtu_touch_distribution)

- Canonical page: https://everyinfra.com/en/douyin-api/xingtu_touch_distribution
- Endpoint: POST /api/v1/social with {"platform": "douyin", "action": "xingtu_touch_distribution", "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_touch_distribution

## 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 |
| categories | On xingtu_conversion_ability, the promoted product categories: [{name, share (0 to 1), sales_range_cny}], only when the creator promoted products. On xingtu_touch_distribution, the content categories connected users came from, up to three levels: [{name, touch_count, subcategories (same shape)}]. |
| 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_touch_distribution",
  "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_touch_distribution",
        "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_touch_distribution",
  "results": {
    "creator_id": …,
    "categories": …,
    "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
