# Threads 主页或对象详情 API (threads.profile)

- Canonical page: https://everyinfra.com/threads-api/profile
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "profile", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

Threads 主页接口按用户短名 `username` 读取一个账号的资料：显示名 `display_name`、简介 `bio`、粉丝数 `follower_count`，以及是否认证 `is_verified` 和是否私密 `is_private`。它回答「这个账号是谁、是不是平台认证」，适合在合作或监测前核对账号身份，或者补全一批用户名的资料。

`username` 可以带 @，但这个接口不解析完整主页 URL。`display_name` 可能和 `username` 不同，`user_id` 是用户在平台的唯一 ID。`bio` 是账号自己填写的文本，可能含换行和 emoji；`avatar_url` 有的是带尺寸参数的 CDN 链接，可能有时效。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | profile / user_posts / followers 的 Threads 用户短名，可带 @；profile 与 user_posts 不解析完整主页 URL。followers 返回粉丝数量，不是粉丝名单。 |

## 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 | platform-native meaning |

## 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": "profile",
  "params": {
    "username": "zuck"
  }
}'
```

```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": "profile",
        "params": {
            "username": "zuck",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "threads",
  "action": "profile",
  "results": {
    "user_id": "•••",
    "username": "zuck",
    "display_name": "•••",
    "bio": "Mostly superintelligence and MMA takes",
    "follower_count": 5744623,
    "is_verified": true,
    "is_private": false,
    "url": "https://www.threads.net/@zuck",
    "avatar_url": "https://instagram.fbau6-1.fna.fbcdn.net/•••",
    "platform": "threads"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `is_verified` 为 null 是没认证吗？

不能这样判断。`is_verified` 为 null 表示无法判定，不等于未认证。核对认证时，只把明确的结果当结论，null 的账号打开 `url` 自己确认。

### `display_name` 和 `username` 用哪个当账号标识？

用 `username` 或 `user_id`。`display_name` 只是显示用的名字，可能和 `username` 不同，做去重或对账时别靠它。

### 什么时候用主页接口，什么时候用粉丝数量接口？

要知道账号是谁，用主页接口：有简介、头像、认证和是否私密。要看体量细节，用粉丝数量接口：关注数、发布内容总数、点赞数和精确度标记都在那边，主页接口里没有。两边都返回 `follower_count`。

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