Skip to main content

比较 X API 的 List Posts 查询 endpoint

v2 的 List Posts 查询 endpoint 将取代 Standard v1.1 的 GET lists/statuses。如果你的代码、App 或工具使用了该版本的 endpoint,并考虑迁移到较新的 X API v2 endpoint,那么这组指南适合你。 下表比较了 Standard v1.1 与 X API v2 的 List endpoints: 按 ID 查询 List
描述Standard v1.1X API v2
支持的 HTTP 方法GETGET
主机域名https://api.x.comhttps://api.x.com
endpoint 路径/1.1/lists/statuses.json/2/lists/:id/tweets
AuthenticationOAuth 1.0a 用户上下文

App only
OAuth 1.0a 用户上下文

OAuth 2.0 授权码模式(Authorization Code)配合 PKCE

App only
默认请求请求速率限制使用 OAuth 1.0a 时每 15 分钟 900 次请求

使用 App only 时每 15 分钟 900 次请求
使用 OAuth 1.0a 时每 15 分钟 900 次请求

使用 OAuth 2.0 时每 15 分钟 900 次请求

使用 App only 时每 15 分钟 900 次请求
要访问 X API v2 endpoints,你必须注册开发者账户。进行认证时,必须使用位于某个Project 内的开发者 App的密钥和令牌。 在我们的入门页面了解更多关于获取 X API v2 endpoints 访问权限的信息。
I