# Bluesky 关注列表 API (bluesky.following)

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

Bluesky 关注列表按 `username` 列出这个账号主动关注的人，每行是一个被关注的账号，带 ID、`display_name`、简介、头像、链接、是否认证和注册日期。它回答「这个账号在读谁」：顺着一个研究者或媒体人的关注名单，可以找到同一领域里的其他账号，也能核实两个账号之间有没有互相关注。

`username` 填完整 handle 或账号绑定的自定义域名。批量读几个人的关注时，`source_username` 标明某一行出自谁的名单。想看反方向，也就是谁在关注他，换粉丝列表，参数和返回字段两页一致。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Bluesky 完整 handle，例如 alice.bsky.social 或账号绑定的自定义域名；不是显示昵称，也不要传 bsky.app/profile/ 页面 URL。profile、user_posts、followers、following 均用同一账号 handle 定位。 |
| limit | integer (1–100) | no | 30 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 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": "following",
  "params": {
    "username": "bsky.app"
  }
}'
```

```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": "following",
        "params": {
            "username": "bsky.app",
        },
    },
    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 15. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "bluesky",
  "action": "following",
  "results": [
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "url": "https://bsky.app/•••",
      "avatar_url": "https://cdn.bsky.app/•••",
      "is_verified": true,
      "joined_at": "2024-11-07T17:42:28.091000+00:00",
      "source_username": "bsky.app",
      "platform": "bluesky"
    },
    {
      "user_id": "•••",
      "username": "•••",
      "display_name": "•••",
      "bio": "•••",
      "url": "https://bsky.app/•••",
      "avatar_url": "https://cdn.bsky.app/•••",
      "is_verified": true,
      "joined_at": "2024-11-21T21:11:36.371000+00:00",
      "source_username": "bsky.app",
      "platform": "bluesky"
    }
  ],
  "count": 15,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 能用它找同领域的账号吗？

可以。挑几个确认属于这个领域的种子账号，各读一份关注列表，数一数每个 `user_id` 被几个种子关注，次数越多越值得看；再用 `bio` 里的关键词过一遍，就是一份候选名单。`bio` 可能带换行和 emoji，匹配前先清洗。最后仍要逐个看简介，确认账号确实属于这个领域。反过来也能用：读一个陌生账号的关注列表，它关注的种子越多，越可能是这个圈子里的人，可以作为一条判断线索。

### 怎么判断两个账号是否互相关注？

分别读两个账号的关注列表，看 A 的名单里有没有 B 的 `username`，B 的名单里有没有 A。两边都有就是互关；只有一边有，说明关注是单向的。一份名单单次最多 100 条，A 关注的人很多时可能读不全，没找到 B 不能直接断定 A 没关注 B。比对要用 handle，显示名可能重名；两份名单合并前保留 `source_username`，否则分不清哪行属于 A。要查的是一批账号两两之间的关系，就把每个人的关注列表都读一遍，拼成一张有向图。

### `username` 填什么？

填完整 handle，比如 alice.bsky.social，账号绑了自定义域名就填那个域名。显示昵称和网页链接不收；同一个 handle 也能直接用来读这个账号的主页资料和帖子。handle 记不全时，先用人员搜索按名字找到账号，结果里的 `username` 就能直接填。一个人在别人的关注名单和粉丝名单里，`user_id` 是同一个，两份名单可以拿它对齐。

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