# Threads 批量查账号 API (threads.profiles_batch)

- Canonical page: [https://everyinfra.com/threads-api/profiles_batch](https://everyinfra.com/threads-api/profiles_batch?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "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 `usernames` 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=threads&action=profiles_batch

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| usernames | not declared | yes | not declared | 要查的 Threads 账号，数组，一次最多 20 个，不收逗号分隔的字符串；同一个账号只能出现一次（大小写不同算同一个）。每项是用户名（可带 @）或主页链接。按账号个数计费；没查到的不收费，列在响应的 missed 里。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | 用户在原平台的唯一 ID。 |
| username | 用户名（@handle）。 |
| display_name | 显示名，可能与 username 不同。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| is_private | 账号是否私密。 |
| url | 该记录在原平台上的可访问链接。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| external_url | 简介里的第一个链接；没有时不出现。 |
| avatar_hd_url | 高清头像地址。 |
| public_view_count | 近 30 天的公开浏览量，就是 Threads 在主页上公开显示的那个数；统计的起止日期在 public_view_count_start、public_view_count_end。 |
| public_view_count_start | public_view_count 统计区间的起始日期，YYYY-MM-DD。 |
| public_view_count_end | public_view_count 统计区间的截止日期，YYYY-MM-DD。 |
| is_fediverse_enabled | 是否开了联邦宇宙（Fediverse）同步。 |
| is_meta_ai_bot | 是 Meta AI 机器人账号；是的时候才出现。 |
| is_hosting_live_chat | 正在开直播聊天；是的时候才出现。 |
| cover_photo_url | 主页封面图地址。 |
| transparency_label | 平台给账号加的说明标签，如官方媒体。 |
| bio_links | 简介区挂的全部链接。 |
| bio_mentions | 简介里 @ 到的用户名。 |
| topics | 账号主页上挂的话题。 |
| bio_links_detail | 简介区挂的全部链接，每项 url、title（链接标题，有的才带）、is_verified（是否验证过归属）。 |
| topics_detail | 主页上挂的话题，每项 id、name、display_name、is_community。 |
| podcast | 帖子上挂的播客单集卡：episode_name、episode_url、podcast_name、platform（播客平台，如 SPOTIFY、APPLE）、image_url。账号资料（profile）里是主页挂的播客：name、url、platform、image_url，有的还带 links（各平台的收听链接，每项 platform、url）。 |
| input | profiles_batch、posts_batch：这一行对应请求里的哪一项，原样。 |

## 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": "threads",
  "action": "profiles_batch",
  "params": {
    "usernames": [
      "zuck",
      "mosseri",
      "instagram"
    ]
  }
}'
```

```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": "threads",
        "action": "profiles_batch",
        "params": {
            "usernames": [
                "zuck",
                "mosseri",
                "instagram",
            ],
        },
    },
    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": "threads",
  "action": "profiles_batch",
  "results": [
    {
      "user_id": …,
      "username": …,
      "display_name": …,
      "bio": …,
      "follower_count": …,
      "is_verified": …,
      "is_private": …,
      "url": …,
      "avatar_url": …,
      "platform": …,
      "external_url": …,
      "avatar_hd_url": …,
      "public_view_count": …,
      "public_view_count_start": …,
      "public_view_count_end": …,
      "is_fediverse_enabled": …,
      "is_meta_ai_bot": …,
      "is_hosting_live_chat": …,
      "cover_photo_url": …,
      "transparency_label": …,
      "bio_links": …,
      "bio_mentions": …,
      "topics": …,
      "bio_links_detail": …,
      "topics_detail": …,
      "podcast": …,
      "input": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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