# 抖音 批量查作者 API (douyin.profiles_batch)

- Canonical page: [https://everyinfra.com/douyin-api/profiles_batch](https://everyinfra.com/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 | 要读的账号，一次最多 20 个，数组，同一项只能出现一次；按个数计费，每个算一次，没取到的退回。返回行带 input，原样是你传的那一项，用来对回去。每项是 抖音用户的 secUid（以 MS4w 开头），或用户主页链接 https://www.douyin.com/user/<secUid>；不收昵称、抖音号和短链。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | 用户在原平台的唯一 ID。 |
| douyin_id | 抖音号（用户自定义的可搜索 ID）。 |
| nickname | 昵称。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| url | 该记录在原平台上的可访问链接。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| following_count | 关注数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| video_count | 视频数：profile、profiles_batch、user_overview、billboard_account_search 是账号的作品数，trending、billboard_rise_list、billboard_challenge_hot 是这个热点下的相关视频数。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| input | 这一行对应的你传的那一项（posts_batch、profiles_batch、media_links 的 urls 里原样那个值），用来把结果对回去。 |

## 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
