X(推特)社群成员 API
按社群编号取一页加入了这个 X 社群的账号,每页约 20 个:账号名、显示名、简介、粉丝数、是否认证。每次最多 20 条;每返回一条 $0.0004,每次最少 $0.0004、最多 $0.0080。出错和超时不收费;空结果收 $0.0004。
curl -G "https://api.dataxapi.com/v1/x/communities/members/list" \ --data-urlencode "id=1539231166569410560" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
{
"code": "ok",
"request_id": "43df73da-a811-4be1-be90-4649b4bfd246",
"data": {
"items": [
{
"id": "133282385620031106",
"username": "hannah_w_photo",
"name": "Hannah Weiss",
"url": "https://x.com/hannah_w_photo",
"bio": "Making things and sharing the process.",
"avatar_url": "https://pbs.twimg.com/profile_images/1828104144827814959/Nx-g-WOM_normal.jpg",
"verified": false,
"created_at": "2022-01-23T14:06:13.000Z",
"metrics": { "followers": 34714, "following": 128, "posts": 624 }
},
// … 另有 16 条
]
},
"page": {
"next_cursor": "c1.YMKaxlcTvqjrcTWeyj4NpxSEAwg-9ZJj0R-yY6qR",
"cursor_expires_at": "2026-10-12T22:37:54.000Z",
"has_more": true,
"returned": 17
},
"warnings": [],
"meta": {
"capability": "x.communities.members.list",
"result_status": "complete",
"fetched_at": "2026-10-12T21:37:54.000Z",
"cached": false,
"replayed": false,
"unavailable": {},
"billing": {
"amount": "0.0068",
"currency": "USD",
"balance_after": "9.9932"
}
}
}取自 2026-10-12 21:37 UTC 录下的真实返回。名字、正文和编号是示例,链接也是,都不是录到的原文(页面不展示任何人的个人信息);数字是原样。长列表做了截断。请求号、游标和余额是示意。
返回大小:标准档 7.1 KB(精简 4.6 KB,完整 7.1 KB)。
{
"code": "ok",
"request_id": "f3852e51-07ae-4981-8c54-9e17a98e914a",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "x.communities.members.list",
"result_status": "empty",
"fetched_at": "2026-10-12T21:37:56.000Z",
"cached": false,
"replayed": false,
"unavailable": {},
"billing": {
"amount": "0.0004",
"currency": "USD",
"balance_after": "9.9996"
}
}
}取自 2026-10-12 21:37 UTC 录下的真实返回。请求号和余额是示意。
返回大小:标准档 409 B(精简 409 B,完整 409 B)。
curl -G "https://api.dataxapi.com/v1/x/communities/members/list" \ --data-urlencode "id=1539231166569410560" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.x.communities.members.list(id="1539231166569410560") print(result["data"]["items"])
import { DataXAPI } from "@dataxapi/sdk";
const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.x.communities.members.list({ id: "1539231166569410560" });
console.log(result.data.items);dataxapi call x.communities.members.list id=1539231166569410560
{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}把这段加进你的 MCP 客户端,然后让你的 AI 调用 x.communities.members.list。
参数
社群编号,一串数字。示例:1539231166569410560。
上一页返回的游标。把上一页的 page.next_cursor 原样带上。每翻一页按一次调用收费。
返回档位。三档价格相同。取值:compact、standard(默认)、full。
只要这些字段。按路径写,例如 author.name。
已知限制
- 每页 20 条。每页条数由平台决定,不收
limit。 - 取下一页时把
page.next_cursor作为cursor带上;游标有效期 1 小时。最后一页的page.has_more是 false。
返回字段
data.items 是账号对象的列表。稳定:字段只增不改。
编号
账号名
显示名
主页链接
简介
长文本:精简档只保留前 500 个字符,并在 warnings 里写明。
头像
展开全部 15 个字段 →
是否认证
账号创建时间
账号的数字
粉丝数
关注数
发布的内容数
这一条里哪些数是约数或下限;都是准确值时不出现
字段的路径,如 metrics.views
约数,还是下限approximatelower_bound
每条数据的典型体积:compact 252 B、standard 400 B、full 400 B(按 2026-10-12 21:37 UTC 录下的那次返回量的)。
什么时候收费
X-Max-Price 可以设自己的上限,超过就不执行)价格读取于 2026-10-21 10:10 UTC,按价目版本 2,2026-10-17 11:00 UTC 起生效;在 Playground 里运行前会再读一次当前价格。
对象不存在时
分不清“社群不存在”和“社群里没有成员”:两种情况都返回空结果,不返回 404,按空结果的规则计费。
常见报错
这个接口会返回的错误码;所有接口共有的见完整列表。
invalid_params参数不合法能否重试:改了再试未扣费cursor_mismatch游标不是用这个接口和这组参数取得的能否重试:改了再试未扣费insufficient_balance余额不足能否重试:改了再试未扣费cursor_expired游标已过期,请从第一页重新开始能否重试:不能未扣费upstream_failed数据来源出错能否重试:能未扣费timeout没有在时限内取到数据,可以用同一个幂等键重试能否重试:能未扣费常见问题
X(推特)社群成员 API 多少钱?
每返回一条 $0.0004,每次最少 $0.0004、最多 $0.0080。单次最高扣费 $0.0080。
什么情况下不收费?
出错和超时不收费;空结果收 $0.0004。
一次返回多少条?怎么翻页?
每页 20 条。每页条数由平台决定,不收 limit。取下一页时把 page.next_cursor 作为 cursor 带上;游标有效期 1 小时。最后一页的 page.has_more 是 false。
对象不存在会怎样?
分不清“社群不存在”和“社群里没有成员”:两种情况都返回空结果,不返回 404,按空结果的规则计费。
X(推特)的全部 21 个接口
在你的 AI 里用它
复制这段提示词
你的 API Key 已经写在里面,不用再配置什么。
还没有账户?注册只要一个邮箱,不用绑卡,失败的调用不收费。
贴给你的 agent
它会去读提示词指向的那一页,自己接好。
现在问点什么
用下面任意一句,或者用自己的话问。
想自己手动配置?
dataxapi setup给这台电脑上的 AI 代理(Claude Code、Codex、Cursor)装好 DataXAPI 的 MCP 服务和基础技能。Key 从环境变量 DATAXAPI_API_KEY 读,不写进任何文件。MCP 服务地址:https://api.dataxapi.com/mcp。你的客户端要填的配置在本页请求示例的“MCP”页签里;接好后让你的 AI 调用 x.communities.members.list。其他客户端 →展开全文
使用 DataXAPI 的接口 x.communities.members.list(X(推特)社群成员)。按社群编号取一页加入了这个 X 社群的账号,每页约 20 个:账号名、显示名、简介、粉丝数、是否认证。 用 GET 请求 https://api.dataxapi.com/v1/x/communities/members/list,带请求头 "Authorization: Bearer $DATAXAPI_API_KEY"。Key 从环境变量 DATAXAPI_API_KEY 读,不要写进代码。 参数: - id (必填):社群编号,一串数字。示例:1539231166569410560。 - cursor:上一页返回的游标。把上一页的 page.next_cursor 原样带上。每翻一页按一次调用收费。 - view:返回档位。三档价格相同。取值:compact、standard(默认)、full。 - fields:只要这些字段。按路径写,例如 author.name。 价格:每返回一条 $0.0004,每次最少 $0.0004、最多 $0.0080。出错和超时不收费;空结果收 $0.0004。 返回 JSON:data.items 是账号;meta.billing.amount 是这次调用的扣费。 示例: curl -G "https://api.dataxapi.com/v1/x/communities/members/list" \ --data-urlencode "id=1539231166569410560" \ -H "Authorization: Bearer $DATAXAPI_API_KEY" 完整说明(Markdown):https://dataxapi.com/zh/apis/x/communities/members/list.md
名称和编号
- 英文名
- X community members API
- 接口编号
x.communities.members.list- 地址
GET /v1/x/communities/members/list
一把 Key,开始用。
21 个平台 207 个接口,一次 $0.0003 起。出错和超时不收费。