Obtener info de usuario mediante auth_token
Obtener info de usuario mediante auth_token.
Volver a la referencia de API
/Cookie Endpoints
GET
/twitter/{auth_token}/user_infoAutorización de API
AuthorizationBearer token · headerrequeridoToken Bearer global para TwexAPI. Incluido como: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Parámetros de ruta
auth_tokenstringrequeridoToken de autenticación auth_token de la cookie
Respuestas
200Twitter user info
codeintegerrequeridoCódigo de estado HTTP (200 indica éxito)
msgstringrequeridoMensaje de respuesta (ej. 'success')
dataUserInfo | anyrequeridoCarga de datos devuelta por el endpoint
Mostrar propiedadesOcultar propiedades
Any of:
UserInfo
userIdstringrequeridoUser ID
isBlueVerifiedbooleanrequeridoBlue verification status
createdAtstringrequeridoAccount creation date
createdAtDatetimestring | anyAccount creation datetime in ISO format
Mostrar propiedadesOcultar propiedades
Any of:
string
stringany
anydefaultProfilebooleanrequeridoDefault profile flag
defaultProfileImagebooleanrequeridoDefault profile image flag
descriptionstringrequeridoBiografía del perfil
locationstringrequeridoLocation
fastFollowersCountintegerrequeridoFast followers count
favouritesCountintegerrequeridoLikes count
followersCountintegerrequeridoFollowers count
followingCountintegerrequeridoFollowing count
hasCustomTimelinesbooleanrequeridoHas custom timelines flag
isTranslatorbooleanrequeridoIs translator flag
listedCountintegerrequeridoListed count
mediaCountintegerrequeridoMedia count
namestringrequeridoNombre mostrado del usuario
normalFollowersCountintegerrequeridoNormal followers count
pinnedTweetIdsStrany[] | anyPinned tweet IDs
Mostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
anypossiblySensitivebooleanrequeridoPossibly sensitive flag
profileImageUrlHttpsstringrequeridoProfile image URL
usernamestringrequeridoUsername
statusesCountintegerrequeridoTweets count
translatorTypestring | anyTranslator type
Mostrar propiedadesOcultar propiedades
Any of:
string
stringany
anyverifiedbooleanrequeridoLegacy verification status
verified_typestring | anyVerification badge type: blue, business, government, etc.
Mostrar propiedadesOcultar propiedades
Any of:
string
stringany
anywithheldInCountriesany[] | anyWithheld in countries
Mostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
anyprotectedbooleanrequeridoProtected account flag
urlstring | anyUser profile URL
Mostrar propiedadesOcultar propiedades
Any of:
string
stringany
anydescriptionUrlsany[] | anyDescription URLs
Mostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
anyurlsany[] | anyUser URLs
Mostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
anypinnedTweetIdsany[] | anyPinned tweet IDs
Mostrar propiedadesOcultar propiedades
Any of:
any[]
Array of
anyanyany
anyany
any422Error de validación de parámetros
detailValidationError[]Mostrar propiedadesOcultar propiedades
Array of
ValidationErrorlocstring | integer[]requeridoMostrar propiedadesOcultar propiedades
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequeridoMensaje de respuesta (ej. 'success')
typestringrequeridoinputanyctxobject⚡Consola interactivaGET
⚡Consola interactiva / Probar APIGETLive 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"const response = await fetch("https://api.twexapi.io/twitter/string/user_info", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.twexapi.io/twitter/string/user_info",
headers={
"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
]
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}