跳到内容
Twexapi
简体中文
Esc
导航打开⌘J预览

验证账号有效性

检测提供的推特账号凭据(Cookie/Token)是否依然有效。

返回 API 接口列表
/Users Endpoints
POST/x/account/verify
API 鉴权
AuthorizationBearer token · header必填
TwexAPI 平台的全局身份凭据 (Bearer Token)。所有接口调用均需在 Header 中携带:Authorization: Bearer <YOUR_TWEXAPI_KEY>。可在 TwexAPI 用户控制台获取。
请求体
必填application/json
Array of string
string
响应结果
200包含账号认证徽章类型(蓝 V/金 V/灰 V)及机构从属关系的认证详情对象。
codeinteger必填
HTTP 响应状态码(200 表示成功)
msgstring必填
响应提示信息(例如 'success')
dataAccountVerifyModel[]必填
接口返回的核心业务数据载荷
展开属性
Array of AccountVerifyModel
user_idstring | any
目标用户的推特唯一数字 ID
展开属性
Any of:
string
string
any
any
screen_namestring | any
推特用户名(Handle,即 @ 后的名称)
展开属性
Any of:
string
string
any
any
is_blue_verifiedboolean | any
是否为推特蓝 V 认证用户(X Premium 会员)
展开属性
Any of:
boolean
boolean
any
any
is_verified_organization_affiliateboolean | any
展开属性
Any of:
boolean
boolean
any
any
is_verifiedboolean | any
当用户拥有蓝 V 认证或企业机构认证关联时为 true
展开属性
Any of:
boolean
boolean
any
any
422请求参数校验错误
detailValidationError[]
展开属性
Array of ValidationError
locstring | integer[]必填
展开属性
Array of string | integer
Any of:
string
string
integer
integer
msgstring必填
响应提示信息(例如 'success')
typestring必填
inputany
ctxobject
交互式测试POST
交互式测试 / Try APIPOST
Live Console
🌐目标服务器:https://api.twexapi.io
● 生产环境就绪
🔍
公开数据读取(仅需 TwexAPI 平台密钥,无需 Twitter Cookie)

本接口为公开推特数据检索/查询,无需任何推特账号或 Cookie!仅需在下方「API 鉴权」中输入您的 TwexAPI 平台密钥 (Bearer Token) 即可直接发起测试。

🔑API 鉴权
📝请求体application/json
📡
暂无响应数据

请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。

请求示例
curl -X POST "https://api.twexapi.io/x/account/verify" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  "1696160451770429440",
  "elonmusk"
]'
响应示例
{
  "code": 0,
  "msg": "string",
  "data": [
    {
      "user_id": "string",
      "screen_name": "string",
      "is_blue_verified": true,
      "is_verified_organization_affiliate": true,
      "is_verified": true
    }
  ]
}