Saltar al contenido
Twexapi
Español
Esc
navegarabrir⌘Jvista previa

Obtener info de usuario mediante auth_token

Obtener info de usuario mediante auth_token.

GET/twitter/{auth_token}/user_info
Autorización de API
AuthorizationBearer token · headerrequerido
Token Bearer global para TwexAPI. Incluido como: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Parámetros de ruta
auth_tokenstringrequerido
Token de autenticación auth_token de la cookie
Respuestas
200Twitter user info
codeintegerrequerido
Código de estado HTTP (200 indica éxito)
msgstringrequerido
Mensaje de respuesta (ej. 'success')
dataUserInfo | anyrequerido
Carga de datos devuelta por el endpoint
Mostrar propiedades
Any of:
UserInfo
userIdstringrequerido
User ID
isBlueVerifiedbooleanrequerido
Blue verification status
createdAtstringrequerido
Account creation date
createdAtDatetimestring | any
Account creation datetime in ISO format
Mostrar propiedades
Any of:
string
string
any
any
defaultProfilebooleanrequerido
Default profile flag
defaultProfileImagebooleanrequerido
Default profile image flag
descriptionstringrequerido
Biografía del perfil
locationstringrequerido
Location
fastFollowersCountintegerrequerido
Fast followers count
favouritesCountintegerrequerido
Likes count
followersCountintegerrequerido
Followers count
followingCountintegerrequerido
Following count
hasCustomTimelinesbooleanrequerido
Has custom timelines flag
isTranslatorbooleanrequerido
Is translator flag
listedCountintegerrequerido
Listed count
mediaCountintegerrequerido
Media count
namestringrequerido
Nombre mostrado del usuario
normalFollowersCountintegerrequerido
Normal followers count
pinnedTweetIdsStrany[] | any
Pinned tweet IDs
Mostrar propiedades
Any of:
any[]
Array of any
any
any
any
possiblySensitivebooleanrequerido
Possibly sensitive flag
profileImageUrlHttpsstringrequerido
Profile image URL
usernamestringrequerido
Username
statusesCountintegerrequerido
Tweets count
translatorTypestring | any
Translator type
Mostrar propiedades
Any of:
string
string
any
any
verifiedbooleanrequerido
Legacy verification status
verified_typestring | any
Verification badge type: blue, business, government, etc.
Mostrar propiedades
Any of:
string
string
any
any
withheldInCountriesany[] | any
Withheld in countries
Mostrar propiedades
Any of:
any[]
Array of any
any
any
any
protectedbooleanrequerido
Protected account flag
urlstring | any
User profile URL
Mostrar propiedades
Any of:
string
string
any
any
descriptionUrlsany[] | any
Description URLs
Mostrar propiedades
Any of:
any[]
Array of any
any
any
any
urlsany[] | any
User URLs
Mostrar propiedades
Any of:
any[]
Array of any
any
any
any
pinnedTweetIdsany[] | any
Pinned tweet IDs
Mostrar propiedades
Any of:
any[]
Array of any
any
any
any
any
any
422Error de validación de parámetros
detailValidationError[]
Mostrar propiedades
Array of ValidationError
locstring | integer[]requerido
Mostrar propiedades
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequerido
Mensaje de respuesta (ej. 'success')
typestringrequerido
inputany
ctxobject
Consola interactivaGET
Consola interactiva / Probar APIGET
Live Console
🌐Servidor objetivo:https://api.twexapi.io
● Producción lista
✍️
Guía de credenciales de escritura (Clave TwexAPI + Cookie de Twitter)

1. Clave de TwexAPI (Bearer Token): Ingrésela en "Autorización API" abajo para facturación y autenticación.

2. Cookie de cuenta Twitter: Para operaciones de escritura (tuitear, dar me gusta, seguir), ingrese la Cookie (ej. auth_token=...; ct0=...) en el campo cookie abajo.

🔑Autorización API
⚙️Parámetros (1)
📡
暂无响应数据

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

Solicitud
curl -X GET "https://api.twexapi.io/twitter/string/user_info" \
  -H "Authorization: Bearer YOUR_TOKEN"
Respuesta
{
  "code": 0,
  "msg": "string",
  "data": {
    "userId": "string",
    "isBlueVerified": true,
    "createdAt": "string",
    "createdAtDatetime": "string",
    "defaultProfile": true,
    "defaultProfileImage": true,
    "description": "string",
    "location": "string",
    "fastFollowersCount": 0,
    "favouritesCount": 0,
    "followersCount": 0,
    "followingCount": 0,
    "hasCustomTimelines": true,
    "isTranslator": true,
    "listedCount": 0,
    "mediaCount": 0,
    "name": "string",
    "normalFollowersCount": 0,
    "pinnedTweetIdsStr": [
      null
    ],
    "possiblySensitive": true,
    "profileImageUrlHttps": "string",
    "username": "string",
    "statusesCount": 0,
    "translatorType": "string",
    "verified": true,
    "verified_type": "blue",
    "withheldInCountries": [
      null
    ],
    "protected": true,
    "url": "string",
    "descriptionUrls": [
      null
    ],
    "urls": [
      null
    ],
    "pinnedTweetIds": [
      null
    ]
  }
}