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

Obtener país de registro de la cuenta

Obtener país de registro de la cuenta.

Volver a la referencia de API
/Twitter Account Based in Endpoints
POST/twitter/account/based
Autorización de API
AuthorizationBearer token · headerrequerido
Token Bearer global para TwexAPI. Incluido como: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Cuerpo de la solicitud
requeridoapplication/json
Array of string
string
Respuestas
200The Twitter Account Based in data.
codeinteger
Código de estado HTTP (200 indica éxito)
default: 200
msgstring
Mensaje de respuesta (ej. 'success')
default: "success"
dataTwitterUserAboutResponse[] | any
Carga de datos devuelta por el endpoint
Mostrar propiedades
Any of:
TwitterUserAboutResponse[]
Array of TwitterUserAboutResponse
user_idstringrequerido
ID numérico del usuario de Twitter
avatarstringrequerido
Profile avatar image URL
namestringrequerido
Nombre mostrado del usuario
screen_namestringrequerido
Nombre de usuario (Handle, sin @)
created_atstringrequerido
Fecha y hora de creación (UTC)
profile_image_shapestringrequerido
Profile image shape (e.g., Circle, Square)
verificationbooleanrequerido
Whether the user account is verified
userLabelDisplayTypestringrequerido
User label display type (e.g., Badge)
userLabelTypestringrequerido
User label type (e.g., BusinessLabel)
is_blue_verifiedbooleanrequerido
Whether the user has blue verification badge (Twitter Blue/X Premium)
privacy_policy_urlstringrequerido
Privacy policy or learn more URL
account_based_instringrequerido
Country or region where the account is based
location_accuratebooleanrequerido
Whether the location information is accurate
affiliate_usernamestringrequerido
Affiliated username (e.g., business account username)
sourcestringrequerido
Source of account creation (e.g., 'United States App Store')
username_changes_countintegerrequerido
Number of times the username has been changed
override_verified_yearintegerrequerido
Override verified year (if applicable, negative values indicate special cases)
verified_since_msecintegerrequerido
Timestamp in milliseconds when the account was verified (negative values indicate special cases)
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 interactivaPOST
Consola interactiva / Probar APIPOST
Live 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
📝Cuerpo de la solicitudapplication/json
📡
暂无响应数据

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

Solicitud
curl -X POST "https://api.twexapi.io/twitter/account/based" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '[
  "screen_name",
  "elonmusk"
]'
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
    }
  ]
}