# X（推特）数据接口与 API

X（推特） API 能力一览：可用接口、按次价格、翻页方式和已知限制，供 AI Agent 直接调用。

规范地址: https://socialtoai.com/zh/platforms/x/

## 选择下一个调用

下方每个可用操作都使用同一套核心响应结构。价格和参数支持以当前参考卡为准。

| 平台 | 动作 | Credits | 可用性 |
|---|---|---|---|
| X（推特） | [search](https://socialtoai.com/zh/x-search-api/) | 0.5 | 可用 |
| X（推特） | [trending](https://socialtoai.com/zh/x-trending-api/) | 0.1 | 可用 |
| X（推特） | [detail](https://socialtoai.com/zh/x-detail-api/) | 0.1 | 可用 |
| X（推特） | [comments](https://socialtoai.com/zh/x-comments-api/) | 0.5 | 可用 |
| X（推特） | [user_profile](https://socialtoai.com/zh/x-user-profile-api/) | 0.1 | 可用 |
| X（推特） | [user_posts](https://socialtoai.com/zh/x-user-posts-api/) | 0.5 | 可用 |

## 已知边界

搜索的 count 在请求上游前就限制为 1–20。源端翻页可能不稳定；翻页失败会如实报错，不会悄悄返回第一页。

原生排序只有 relevance 和 latest，其他热度排序是带 warning 的近似实现。时间和媒体筛选使用高级搜索运算符。

热榜仅限全球（Worldwide），没有地区、数量或翻页参数。

评论只包含对该帖子或该回复分支的直接回复。

用户资料需要用户名或主页链接，数字 ID 不会被当作用户名使用。创作者作品也接受用户 ID。
