社群资料、帖子、成员
X 的社群(Communities):社群资料、社群里的帖子和成员。
GET /v1/x/communities/posts/list$0.00033 个接口 · $0.0003 起 →21 个接口读 X(推特):帖子、用户、对话串、热榜、X 社群、X 列表。一次 $0.0003 起。不用登录 X,不用 Cookie;失败不收费。
2026-10-12 19:10 UTC 录下的真实返回,这里是前 8 行。
在 Playground 里跑一次 · $0.0020{
"code": "ok",
"request_id": "f56e2410-206b-4506-a850-44cf2be4613e",
"data": {
"items": [
{
"id": "1860387339653354774",
"url": "https://x.com/i/status/1860387339653354774",
"type": "video",
"text": "My honest take on weather forecast, a month in.",
"lang": "en",
"published_at": "2026-10-12T00:44:12.000Z",
"author": {
"id": "118815899823132376",
"username": "trail_and_lens",
"name": "Maya Chen",
"avatar_url": "https://pbs.twimg.com/profile_images/1838837416644987075/31t9r3Fm_normal.jpg",
"verified": true,
"followers": 7425
},
"metrics": {
"likes": 238,
"comments": 37,
"favorites": 145,
"views": 8357,
"reposts": 121
},
"images": [],
"hashtags": [],
"mentions": [
{
"id": "124366312906800227",
"username": "fieldnotes_studio",
"name": "Field Notes Studio"
}
],
"post_id": null,
"parent_id": null
},
// … 另有 19 条
]
},
"page": {
"next_cursor": "c1.0BcduLiC6vViwQfDR_nS6Twlb6kjko4Qpbx3fUDt",
"cursor_expires_at": "2026-10-12T20:10:39.000Z",
"has_more": true,
"returned": 20
},
"warnings": [],
"meta": {
"capability": "x.posts.search",
"result_status": "complete",
"fetched_at": "2026-10-12T19:10:39.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"title": "platform",
"metrics.shares": "platform",
"is_pinned": "capability",
"root_id": "platform"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}取自 2026-10-12 19:10 UTC 录下的真实返回。名字、正文和编号是示例,链接也是,都不是录到的原文(页面不展示任何人的个人信息);数字是原样。长列表做了截断。请求号、游标和余额是示意。
每一行是一个接口:返回什么,一次多少钱。
X 社群、X 列表:原本要登录 X 自己的后台才看得到的数据,在这里各是一次 GET。
X 的社群(Communities):社群资料、社群里的帖子和成员。
GET /v1/x/communities/posts/list$0.00033 个接口 · $0.0003 起 →X 的列表(Lists):列表里的帖子、成员和关注者。
GET /v1/x/lists/posts/list$0.00203 个接口 · $0.0004 起 →调用那一刻平台自己的榜单,带热度值。免费榜单页上有完整的一份。
你的 AI 现在就能用 X 数据跑的现成任务。每个任务是几次调用,带花费上限。
https://api.dataxapi.com/mcp这里演示的是 X 帖子搜索。X 的其他接口都是同样的调法,返回同样的格式。
用邮箱验证码或 Google 登录。可免费试用,不用绑卡。
代码里一次 GET。或者把下面这段话带着你的 Key 贴给你的 agent:它自己接好,然后能自己找到并调用这些接口。
数据在 data.items(单个对象在 data.item),下一页在 page.next_cursor,扣了多少在 meta.billing.amount。失败不扣费。
curl -G "https://api.dataxapi.com/v1/x/posts/search" \ --data-urlencode "query=weather forecast" \ -H "Authorization: Bearer $DATAXAPI_API_KEY"
# pip install dataxapi from dataxapi import DataXAPI dx = DataXAPI() # reads DATAXAPI_API_KEY result = dx.x.posts.search(query="weather forecast") print(result["data"]["items"])
// npm i @dataxapi/sdk import { DataXAPI } from "@dataxapi/sdk"; const dx = new DataXAPI(); // reads DATAXAPI_API_KEY const result = await dx.x.posts.search({ query: "weather forecast" }); console.log(result.data.items);
dataxapi call x.posts.search 'query=weather forecast'{
"mcpServers": {
"dataxapi": {
"type": "http",
"url": "https://api.dataxapi.com/mcp",
"headers": {
"Authorization": "Bearer ${DATAXAPI_API_KEY}"
}
}
}
}把这段加进你的 MCP 客户端,然后让你的 AI 调用 x.posts.search。
X 这些接口在边界上怎么表现,以及调用结果不对时先看哪里。
page.next_cursor 作为 cursor 传回,每一页是一次单独的调用。其余只有一页。meta.unavailable 里再写一遍:缺的字段不会被悄悄写成 0。ids 一次请求可以取多个:X 用户资料(最多 100 个)。meta.fetched_at 写明是什么时候取的。username,就是不带 @ 的账号名;用户资料可以用账号名、编号,或者一次最多 100 个 ids。upstream_failed,不扣费,可以再试一次。metrics.comments 是回复数,metrics.favorites 是书签数,metrics.reposts 是转推数;引用另算,在 ext.quotes。x.lists.followers.list 最多返回 20 个账号,没有下一页。回答从简,细节在各接口的页面。
按次收费,没有订阅。一次 $0.0003 到 $0.0400,每个接口的页面写明自己的价格。有 11 个接口按返回的条数计费,每次有最低和最高。拿到数据才扣费,失败不收。
不需要。你只拿一把 DataXAPI 的 Key:不用登录 X,不用 Cookie,也不用养设备。接口只返回公开可见的数据。
每次调用都当场去 X 取,meta.fetched_at 写明取到的时间。X 趋势榜:榜单是每 5 分钟刷新一次的快照。结果保留 24 小时,带同一个 Idempotency-Key 重试不会再扣一次。
16 个接口里有 15 个在列表返回空结果时照价收费:搜索已经执行了。读单个对象而对象不存在时返回 not_found,收不收费看接口页。
调用失败不管什么原因都不扣费。被暂停的接口返回 capability_paused,同样不扣费;GET /v1/catalog/status 写着现在哪些能用。
免费试用:按 $0.0003 一次,最多可调 333 次,不用绑卡。 不用登录 X,不用 Cookie,没有订阅。失败不收费。