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

修改个人资料

自动化修改当前账号的 Bio 简介、头像 Avatar URL 或横幅背景图 Banner URL。需附带 Twitter Cookie。

返回 API 接口列表
/Twitter Profile Actions Endpoints
POST/twitter/profile
API 鉴权
AuthorizationBearer token · header必填
TwexAPI 平台的全局身份凭据 (Bearer Token)。所有接口调用均需在 Header 中携带:Authorization: Bearer <YOUR_TWEXAPI_KEY>。可在 TwexAPI 用户控制台获取。
请求体
必填application/json
cookiestring必填
用户自有授权的 Twitter 会话凭据或 auth_token(BYOC 自带 Cookie 模式)。无状态受托代理执行,凭据绝不持久化存储。详见 [鉴权与安全说明](/zh/authentication#写操作鉴权与-byoc自带授权-cookie--token) 与 [获取 Cookie 指南](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)。
namestring | any
用户昵称/显示名称
展开属性
Any of:
string
string
any
any
websitestring | any
用户在个人主页资料中填写的官网外链 URL
展开属性
Any of:
string
string
any
any
descriptionstring | any
个人主页 Bio 自我介绍文本
展开属性
Any of:
string
string
any
any
locationstring | any
用户在个人主页填写的所在地/国家地区
展开属性
Any of:
string
string
any
any
profile_imagestring | any
用户新头像图片公开可访问 URL
展开属性
Any of:
string
string
any
any
profile_bannerstring | any
用户新个人主页横幅背景图公开可访问 URL
展开属性
Any of:
string
string
any
any
proxystring | any
用于执行请求的代理 IP 地址(必填)。请使用高质量住宅静态代理,避免使用免费公共代理。格式示例:http://username:password@ip:port
展开属性
Any of:
string
string
any
any
响应结果
200请求成功响应
codeinteger必填
HTTP 响应状态码(200 表示成功)
msgstring必填
响应提示信息(例如 'success')
databoolean必填
接口返回的核心业务数据载荷
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 密钥 + 目标推特 Cookie)

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

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

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

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

请求示例
curl -X POST "https://api.twexapi.io/twitter/profile" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "cookie": "string",
  "name": "string",
  "website": "string",
  "description": "string",
  "location": "New York, USA",
  "profile_image": "https://example.com/image.jpg",
  "profile_banner": "https://example.com/banner.jpg",
  "proxy": "http://username:password@ip:port"
}'
响应示例
{
  "code": 200,
  "msg": "success",
  "data": true
}