# Threads 账号发现 API (threads.discover_profiles)

- Canonical page: https://everyinfra.com/threads-api/discover_profiles
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "threads", "action": "discover_profiles", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 50 per call
- Mode: async by default (202 + job_id, poll GET /api/v1/jobs/{job_id})

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 搜索公开帖子，discover_profiles 用关键词发现创作者；后者是异步任务，不能把响应任务状态当成已返回账号名单。 |
| since | not declared | no | not declared | discover_profiles 的日期下界，不保证按此日期筛选；不是账号注册时间。 |
| until | not declared | no | not declared | discover_profiles 共享的日期上界，不能承诺由此取得该期间全部作者；search 不支持日期筛选。 |
| limit | integer (1–50) | no | 10 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | 用户名（@handle）。 |
| display_name | 显示名，可能与 username 不同。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| url | 该记录在原平台上的可访问链接。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| emails | 联系邮箱列表（一条记录可能有多个），原文透传、去重。 |
| phones | platform-native meaning |
| external_links | 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": "discover_profiles",
  "params": {
    "keyword": "coffee"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "threads",
  "action": "discover_profiles",
  "results": [
    {
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "follower_count": 99866,
      "is_verified": true,
      "url": "https://www.threads.com/•••",
      "avatar_url": "https://scontent-den2-1.cdninstagram.com/•••",
      "platform": "threads"
    },
    {
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "follower_count": 7680,
      "is_verified": false,
      "url": "https://www.threads.com/•••",
      "avatar_url": "https://scontent-lax3-1.cdninstagram.com/•••",
      "platform": "threads",
      "external_links": [
        "https://lin.ee/•••"
      ]
    }
  ],
  "count": 10,
  "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
