# Douyin Profiles in bulk API (douyin.profiles_batch)

- Canonical page: [https://everyinfra.com/en/douyin-api/profiles_batch](https://everyinfra.com/en/douyin-api/profiles_batch?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "profiles_batch", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: each element in `urls` counts as one call; the number of elements you send sets the charge
- Returns: list
- Mode: sync only; everything it returns (every target of a batch, or every SKU of a product) is read in one call, and "mode": "async" returns 422 before any charge

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| urls | not declared | yes | not declared | The accounts to read, as an array of up to 20 entries; each entry can appear only once. Each entry is a `secUid` (starting `MS4w`) or a profile link `https://www.douyin.com/user/<secUid>`. Nicknames, Douyin IDs and short links are not accepted. Billed per account; accounts not found are not charged. Rows carry `input`, the entry you passed. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | User's unique ID on the platform. |
| douyin_id | Douyin ID: the searchable ID the account holder chooses. |
| nickname | Display name of the account. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| url | Link to the record on the platform. |
| follower_count | Followers. null means not disclosed, not 0. |
| following_count | Accounts followed. null means not disclosed, not 0. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| video_count | Video count: the account's videos on profile, profiles_batch, user_overview and billboard_account_search, videos related to the entry on trending. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| input | The entry from `urls` that this row answers, returned exactly as you passed it (`posts_batch`, `profiles_batch`, `media_links`). Use it to match rows to your entries. |

## 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": "profiles_batch",
  "params": {
    "urls": [
      "https://www.douyin.com/user/<SEC_UID_A>",
      "<SEC_UID_B>"
    ]
  }
}'
```

```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": "profiles_batch",
        "params": {
            "urls": [
                "https://www.douyin.com/user/<SEC_UID_A>",
                "<SEC_UID_B>",
            ],
        },
    },
    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": "profiles_batch",
  "results": [
    {
      "user_id": …,
      "douyin_id": …,
      "nickname": …,
      "bio": …,
      "url": …,
      "follower_count": …,
      "following_count": …,
      "like_count": …,
      "video_count": …,
      "is_verified": …,
      "avatar_url": …,
      "platform": …,
      "input": …
    }
  ],
  "count": …,
  "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
