Skip to main content

比较 X API 的 List 查询 endpoint

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

App only
OAuth 1.0a 用户上下文

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

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

使用 OAuth 2.0:每 15 分钟 75 次请求

使用 App only:每 15 分钟 75 次请求
使用 OAuth 1.0a:每 15 分钟 75 次请求

使用 OAuth 2.0:每 15 分钟 75 次请求

使用 App only:每 15 分钟 75 次请求
用户拥有的 List 查询
描述Standard v1.1X API v2
支持的 HTTP 方法GETGET
主机域名https://api.x.comhttps://api.x.com
endpoint 路径/1.1/lists/ownerships.json/2/users/:id/owned_lists
认证OAuth 1.0a 用户上下文

App only
OAuth 1.0a 用户上下文

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

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

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

使用 OAuth 2.0:每 15 分钟 15 次请求

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