# Bluesky 人员搜索 API (bluesky.search_people)

- Canonical page: [https://everyinfra.com/bluesky-api/search_people](https://everyinfra.com/bluesky-api/search_people?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "bluesky", "action": "search_people", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- Mode: sync; add "mode": "async" for slow tasks

Bluesky 人员搜索按 `keyword` 查找匹配的账号，每行带 `user_id`、完整 handle、显示名、简介、头像、主页链接、认证标识和注册时间 `joined_at`。它回答「这个领域或这个名字在 Bluesky 上对应哪些人」，常用于找某个行业的研究者和记者、确认一个人在 Bluesky 上的账号，或者给达人和媒体名单补上 Bluesky handle。

它返回人物资料，不搜索含这个词的帖子；要读某个账号发的帖子，把结果里的 `username` 交给用户内容。单次默认 20 条，最多 200 条；不需要先知道要看谁的 `username`。`url` 是主页链接，`avatar_url` 是头像链接，可以用来核对搜到的账号。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search_people 的人物/账号搜索词。此入口返回匹配的人物资料，不搜索含该词的帖子；取账号发帖需改用 user_posts 并提供完整 username。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | 用户在原平台的唯一 ID。 |
| username | 用户名（@handle）。 |
| display_name | 显示名，可能与 username 不同。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| url | 该记录在原平台上的可访问链接。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| joined_at | 账号注册时间。 |
| source_username | 这一行所在名单的所属账号，只在 followers、following 里出现，就是请求里的 username。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "bluesky",
  "action": "search_people",
  "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": "bluesky",
        "action": "search_people",
        "params": {
            "keyword": "coffee",
        },
    },
    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; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "bluesky",
  "action": "search_people",
  "results": [
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "url": "https://bsky.app/•••",
      "avatar_url": "https://cdn.bsky.app/•••",
      "is_verified": false,
      "joined_at": "2023-07-24T18:05:11.575000+00:00",
      "platform": "bluesky"
    },
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "url": "https://bsky.app/•••",
      "avatar_url": "https://cdn.bsky.app/•••",
      "is_verified": false,
      "joined_at": "2023-06-23T03:19:22.352000+00:00",
      "platform": "bluesky"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 搜到的人怎么继续往下查？

结果里的 `username` 就是完整 handle，可以直接传给 Bluesky 的主页资料、用户内容、粉丝列表和关注列表。先搜索找到人，再按需要读他的帖子或社交关系。同名账号或几次搜索重复命中同一个账号时，按 `user_id` 去重，它是用户在原平台的唯一 ID；`display_name` 可能与 `username` 不同，别拿显示名当去重键。

### 怎么确认搜到的是本人？

先看 `is_verified`，再结合 `bio`、`username` 和 `joined_at` 判断；同名的几个账号可以都留下，逐个核对。`joined_at` 是注册时间，可以帮你分辨名字相近的账号；`is_verified` 为 null 表示无法判定，不是 false。名字相近的账号很多时，把 `display_name`、`username` 和 `bio` 三项并排放进一张表里比对。

### 人员搜索和粉丝列表有什么不同？

人员搜索从一个词出发找账号，适合还不知道要看谁的时候；粉丝列表从一个已知账号出发，列出关注它的人。两者返回的人物字段相同，但 `source_username` 只在粉丝和关注名单里出现。`keyword` 是人物或账号的搜索词，传帖子里的话题词搜不到帖子；要看某人发了什么，拿 `username` 去读用户内容。两页的条数也不同：人员搜索默认 20 条、最多 200 条，粉丝列表默认 30 条、最多 100 条。

## Also

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