# X (Twitter) 列表成员 API (twitter.list_members)

- Canonical page: [https://everyinfra.com/twitter-api/list_members](https://everyinfra.com/twitter-api/list_members?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "twitter", "action": "list_members", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| list_id | not declared | yes | not declared | X 列表（List）的数字编号，即 x.com/i/lists/ 后的数字，也可填列表链接；返回列表里的账号，每页 20 个。列表不存在或是私密列表时返回空结果，不收费。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一次响应里的 next_page_token 原样传回，拿下一页；不传从第一页开始。令牌 24 小时有效，每页算一次调用。 |

## 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）。 |
| media_count | 账号发过的图片 / 视频数（retweeters）。 |
| affiliation | 账号挂的机构标签（如员工账号挂的公司名「X」）；没挂时没有这个字段。 |

## 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": "list_members",
  "params": {
    "list_id": "84839422"
  }
}'
```

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

## Response example

Real response to the example request above, captured 2026-11-21T07:22:03Z. `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": "twitter",
  "action": "list_members",
  "results": [
    {
      "id": "•••",
      "username": "C•••s",
      "url": "https://x.com/•••",
      "name": "C•••s",
      "text": "Empowering users to create a better-informed world.\n\nWe're open source and data is publicly available: https://communitynotes.x.com/guide/en/\n\nQ? Reply/DM",
      "avatar_url": "https://pbs.twimg.com/•••",
      "follower_count": 1191666,
      "following_count": 0,
      "post_count": 480,
      "is_verified": true,
      "is_protected": false,
      "created_at": "2020-10-21T22:04:47+00:00",
      "platform": "twitter",
      "media_count": 115,
      "affiliation": "X"
    },
    {
      "id": "•••",
      "username": "T•••d",
      "url": "https://x.com/•••",
      "name": "T•••d",
      "text": "Please follow @X for updates.",
      "avatar_url": "https://pbs.twimg.com/•••",
      "follower_count": 37712,
      "following_count": 16,
      "post_count": 1263,
      "is_verified": false,
      "is_protected": true,
      "created_at": "2020-03-30T21:02:29+00:00",
      "platform": "twitter",
      "media_count": 333
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

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