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

通过 auth_token 获取完整 Cookie

传入从浏览器复制的单个 auth_token 字符串,自动换取带有完整会话的 Cookie 格式。

返回 API 接口列表
/Cookie Endpoints
GET/twitter/{auth_token}/cookie
API 鉴权
AuthorizationBearer token · header必填
TwexAPI 平台的全局身份凭据 (Bearer Token)。所有接口调用均需在 Header 中携带:Authorization: Bearer <YOUR_TWEXAPI_KEY>。可在 TwexAPI 用户控制台获取。
路径参数
auth_tokenstring必填
目标 Twitter 账号的已登录 auth_token 字符串(来自浏览器 Cookie)
响应结果
200换取到的完整推特身份认证 Cookie 字符串
codeinteger必填
HTTP 响应状态码(200 表示成功)
msgstring必填
响应提示信息(例如 'success')
dataany
接口返回的核心业务数据载荷
展开属性
Any of:
any
any
any
any
422请求参数校验错误
detailValidationError[]
展开属性
Array of ValidationError
locstring | integer[]必填
展开属性
Array of string | integer
Any of:
string
string
integer
integer
msgstring必填
响应提示信息(例如 'success')
typestring必填
inputany
ctxobject
交互式测试GET
交互式测试 / Try APIGET
Live Console
🌐目标服务器:https://api.twexapi.io
● 生产环境就绪
✍️
写入接口凭证指引(TwexAPI 密钥 + 目标推特 Cookie)

1. TwexAPI 平台密钥 (Bearer Token):在下方「API 鉴权」中填入,用于 TwexAPI 计费与接口调用鉴权。

2. 推特账号 Cookie:本接口为代发/点赞/关注等写操作,需在下方请求体 (Request Body)cookie 字段中填入目标 Twitter 账号的 Cookie 凭据(如 auth_token=...; ct0=...)。

🔑API 鉴权
⚙️请求参数 (1)
📡
暂无响应数据

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

请求示例
curl -X GET "https://api.twexapi.io/twitter/string/cookie" \
  -H "Authorization: Bearer YOUR_TOKEN"
响应示例
{
  "code": 200,
  "msg": "success",
  "data": {}
}