X / Twitter 用户帖子 API
按用户名获取 X (Twitter) 账号主页“帖子”标签页的时间线。结果按主页顺序排列:置顶帖子可能排在最前,其后按时间倒序排列本人发布的帖子、转帖、引用和作者自发帖子串的后续帖子。
US$0.45/千次请求,按请求付费,无需订阅。
@buildwithjonah
@buildwithjonah
Pinned
@buildwithjonah· Sep 26, 2024
Spent the last 6 months building a data pipeline that normalizes 40 scraper APIs into one schema. Here is what broke, and what I would do differently. A thread.
{"id": "1842093771280384512","url": "https://x.com/buildwithjonah/status/1842093771280384512","text": "Spent the last 6 months building a data pipeline that normalizes 40 scraper APIs into one schema. Here is what broke, and what I would do differently. A thread.","createdUtc": 1727366400,"lang": "en","likes": 3820,"retweets": 412,"replies": 96,还有 12 个字段}
价格与服务商
X / Twitter 用户帖子 API 价格:一个 API,3 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
每次请求封顶 US$0.00211 条结果US$0.000210 条结果US$0.001120 条结果US$0.0021(封顶)按实际返回的内容计费。调低返回数量上限即可少付,而且无论返回多少,单次请求都不会超过封顶价。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-10-06 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- handlestring
buildwithjonah
响应
JSON,每个字段一个示例值。
- foundboolean
true
- idstring
1842093771280384512
- urlstring
https://x.com/buildwithjonah/status/1842093771280384512
- textstring
Spent the last 6 months building a data pipeline that normalizes 40 scraper APIs into one schema. Here is what broke, and what I would do differently. A thread.
- createdUtcnumber
1727366400
- langstring
en
- likesnumber
3820
- retweetsnumber
412
- repliesnumber
96
- quotesnumber
28
- viewsnumber
284000
- bookmarksnumber
1540
- isReplyboolean
false
- isPinnedboolean
true
- mediaarray
- conversationIdstring
1842093771280384512
- sourcestring
Twitter Web App
- authorIdstring
1401882093771280384
- authorNamestring
Jonah Ruiz
- authorHandlestring
buildwithjonah
- authorImagestring
https://pbs.twimg.com/profile_images/1401882093771280384/jonah_400x400.jpg
- nextCursorstring
DAABCgABGZ3xw5A2xVIKAAIY__posts_page2
常见问题
关于 X / Twitter 用户帖子 API
AnyAPI 的 X / Twitter 用户帖子 API 只需一次 POST 请求 /v1/run/twitter.user_posts,就以统一格式的 JSON 返回 X / Twitter 数据。按用户名获取 X (Twitter) 账号主页“帖子”标签页的时间线。结果按主页顺序排列:置顶帖子可能排在最前,其后按时间倒序排列本人发布的帖子、转帖、引用和作者自发帖子串的后续帖子。AnyAPI 会在 3 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.45 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 X / Twitter 用户帖子 API 调用中有 99.9% 成功,响应时间中位数为 2.0 秒,共测量 33,018 次调用。