Obtener perfil público de usuario
Obtener perfil público de usuario.
Volver a la referencia de API
/Twitter User About Endpoints
GET
/twitter/{screen_name}/aboutAutorización de API
AuthorizationBearer token · headerrequeridoToken Bearer global para TwexAPI. Incluido como: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Parámetros de ruta
screen_namestringrequeridoNombre de usuario (Handle, sin @)
Respuestas
200The Twitter User About object with its information.
codeintegerCódigo de estado HTTP (200 indica éxito)
default: 200
msgstringMensaje de respuesta (ej. 'success')
default: "success"
dataTwitterUserAboutResponse | anyCarga de datos devuelta por el endpoint
Mostrar propiedadesOcultar propiedades
Any of:
TwitterUserAboutResponse
user_idstringrequeridoID numérico del usuario de Twitter
avatarstringrequeridoProfile avatar image URL
namestringrequeridoNombre mostrado del usuario
screen_namestringrequeridoNombre de usuario (Handle, sin @)
created_atstringrequeridoFecha y hora de creación (UTC)
profile_image_shapestringrequeridoProfile image shape (e.g., Circle, Square)
verificationbooleanrequeridoWhether the user account is verified
userLabelDisplayTypestringrequeridoUser label display type (e.g., Badge)
userLabelTypestringrequeridoUser label type (e.g., BusinessLabel)
is_blue_verifiedbooleanrequeridoWhether the user has blue verification badge (Twitter Blue/X Premium)
privacy_policy_urlstringrequeridoPrivacy policy or learn more URL
account_based_instringrequeridoCountry or region where the account is based
location_accuratebooleanrequeridoWhether the location information is accurate
affiliate_usernamestringrequeridoAffiliated username (e.g., business account username)
sourcestringrequeridoSource of account creation (e.g., 'United States App Store')
username_changes_countintegerrequeridoNumber of times the username has been changed
override_verified_yearintegerrequeridoOverride verified year (if applicable, negative values indicate special cases)
verified_since_msecintegerrequeridoTimestamp in milliseconds when the account was verified (negative values indicate special cases)
any
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
🔍
Lectura de datos públicos (Solo clave TwexAPI, sin cookie de Twitter)
Este endpoint consulta datos públicos de Twitter: ¡no se requiere cuenta ni Cookie de Twitter! Simplemente ingrese su clave TwexAPI (Bearer Token) en "Autorización API" para probar.
🔑Autorización API
⚙️Parámetros (1)
📡
暂无响应数据
请在「请求配置」中确认参数后,点击底部的「发送请求」按钮。
Solicitud
curl -X GET "https://api.twexapi.io/twitter/e/about" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.twexapi.io/twitter/e/about", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.twexapi.io/twitter/e/about",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Respuesta
{
"code": 200,
"msg": "success",
"data": {
"user_id": "44196397",
"avatar": "https://pbs.twimg.com/profile_images/1983681414370619392/oTT3nm5Z_normal.jpg",
"name": "Elon Musk",
"screen_name": "elonmusk",
"created_at": "Tue Jun 02 20:12:29 +0000 2009",
"profile_image_shape": "Circle",
"verification": false,
"userLabelDisplayType": "Badge",
"userLabelType": "BusinessLabel",
"is_blue_verified": true,
"privacy_policy_url": "https://help.twitter.com/managing-your-account/about-twitter-verified-accounts",
"account_based_in": "United States",
"location_accurate": true,
"affiliate_username": "X",
"source": "United States App Store",
"username_changes_count": 0,
"override_verified_year": -3000,
"verified_since_msec": -156836000000000
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}