# X (Twitter) 粉丝列表 API (twitter.followers_list)

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

X（Twitter）粉丝列表按 `username` 读取关注这个账号的可见粉丝，每行带所在地 `location`、粉丝数、关注数、发帖数、注册时间 `created_at`、认证标识，以及是否受保护 `is_protected`。它回答「谁在关注这个账号」，常用于分析一个账号的受众构成、找出受众里有影响力的人，或者按注册时间和发帖数把粉丝分层。

`username` 填用户短名，可以带 @，不要填完整主页链接。返回的是平台可见的粉丝，不保证是完整的关系网。不传 `limit` 时读 200 行，单次最多 2000 行。`avatar_url` 可能有时效，要留存头像请及时取回。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | X 用户短名，可带 @，不要填完整主页 URL。profile 从最近帖子内的作者信息整理资料；followers_list 与 following_list 分别读取可见粉丝和关注账号，不保证完整关系网。 |
| limit | integer (1–2000) | no | 200 | 这次调用最多返回的条数，整数，1–2000；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| username | 用户名（@handle）。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| follower_count | 粉丝数。null 表示不公开，不等于 0。 |
| following_count | 关注数。null 表示不公开，不等于 0。 |
| post_count | 发布内容总数。null 表示不公开，不等于 0。 |
| is_verified | 是否为平台认证账号（蓝V等）。null 表示无法判定。 |
| is_protected | 账号是否为受保护状态（推文仅粉丝可见）。 |
| created_at | 创建时间，格式同 posted_at。 |
| 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": "twitter",
  "action": "followers_list",
  "params": {
    "username": "nasa"
  }
}'
```

```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": "twitter",
        "action": "followers_list",
        "params": {
            "username": "nasa",
        },
    },
    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 200. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "twitter",
  "action": "followers_list",
  "results": [
    {
      "id": "•••",
      "username": "•••",
      "url": "https://x.com/•••",
      "name": "•••",
      "text": "",
      "avatar_url": "https://pbs.twimg.com/•••",
      "follower_count": 0,
      "following_count": 6,
      "post_count": 0,
      "is_verified": false,
      "is_protected": false,
      "created_at": "Tue Aug 25 06:17:15 +0000 2026",
      "platform": "twitter"
    },
    {
      "id": "•••",
      "username": "•••",
      "url": "https://x.com/•••",
      "name": "•••",
      "text": "",
      "avatar_url": "https://abs.twimg.com/•••",
      "follower_count": 0,
      "following_count": 25,
      "post_count": 0,
      "is_verified": false,
      "is_protected": false,
      "created_at": "Sat Sep 26 10:42:56 +0000 2026",
      "platform": "twitter"
    }
  ],
  "count": 200,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### 能拿到一个账号的全部粉丝吗？

不能保证。这项能力读取的是平台可见的粉丝，不保证覆盖完整的关系网。做受众分析时把它当样本看，用比例而不是绝对数下结论更稳妥。粉丝多于单次上限的账号一次读不完，这一页也没有翻页令牌，拿到的只是其中一部分。合并几次读取的名单时，以 `id` 为准，不要用 `username` 去重；`username` 是 @handle，`name` 是显示名。

### 怎么在粉丝里找有影响力的账号？

按每行的 `follower_count` 排序，再用 `is_verified` 标出认证账号，靠前的就是受众里粉丝最多的人。这份名单适合用来找可以互动、转发或合作的对象。`follower_count` 为 null 表示不公开，不等于 0，排序前先剔除；`is_verified` 为 null 表示无法判定，也不等于没有认证。再配合 `post_count`，可以剔除几乎不发帖的账号。其中 `is_protected` 为真的账号推文只对粉丝可见，找互动对象时要考虑这一点。

### 怎么按注册时间和发帖数给粉丝分层？

看 `created_at` 和 `post_count`。把粉丝按注册时间分段，再统计每段里 `post_count` 很低、`following_count` 远高于 `follower_count` 的账号占比，比单看粉丝总数更能说明受众的构成。`location` 原文透传，格式不统一，按地区分层前要先清洗。`is_protected` 为真的账号推文仅粉丝可见，可以单独分成一层；发帖数没公开的账号也单独放一组。

## Also

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