Aller au contenu
Twexapi
Français
Esc
naviguerouvrir⌘Japerçu

Obtenir les infos utilisateur via auth_token

Obtenir les infos utilisateur via auth_token.

GET/twitter/{auth_token}/user_info
Autorisation API
AuthorizationBearer token · headerrequis
Jeton Bearer global pour TwexAPI. Inclus sous la forme : Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Paramètres de chemin
auth_tokenstringrequis
auth_token extrait du cookie
Réponses
200Twitter user info
codeintegerrequis
Code d'état HTTP (200 indique le succès)
msgstringrequis
Message de réponse (ex. 'success')
dataUserInfo | anyrequis
Données principales renvoyées par l'API
Afficher les propriétés
Any of:
UserInfo
userIdstringrequis
User ID
isBlueVerifiedbooleanrequis
Blue verification status
createdAtstringrequis
Account creation date
createdAtDatetimestring | any
Account creation datetime in ISO format
Afficher les propriétés
Any of:
string
string
any
any
defaultProfilebooleanrequis
Default profile flag
defaultProfileImagebooleanrequis
Default profile image flag
descriptionstringrequis
Biographie du profil
locationstringrequis
Location
fastFollowersCountintegerrequis
Fast followers count
favouritesCountintegerrequis
Likes count
followersCountintegerrequis
Followers count
followingCountintegerrequis
Following count
hasCustomTimelinesbooleanrequis
Has custom timelines flag
isTranslatorbooleanrequis
Is translator flag
listedCountintegerrequis
Listed count
mediaCountintegerrequis
Media count
namestringrequis
Nom de l'utilisateur
normalFollowersCountintegerrequis
Normal followers count
pinnedTweetIdsStrany[] | any
Pinned tweet IDs
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
possiblySensitivebooleanrequis
Possibly sensitive flag
profileImageUrlHttpsstringrequis
Profile image URL
usernamestringrequis
Username
statusesCountintegerrequis
Tweets count
translatorTypestring | any
Translator type
Afficher les propriétés
Any of:
string
string
any
any
verifiedbooleanrequis
Legacy verification status
verified_typestring | any
Verification badge type: blue, business, government, etc.
Afficher les propriétés
Any of:
string
string
any
any
withheldInCountriesany[] | any
Withheld in countries
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
protectedbooleanrequis
Protected account flag
urlstring | any
User profile URL
Afficher les propriétés
Any of:
string
string
any
any
descriptionUrlsany[] | any
Description URLs
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
urlsany[] | any
User URLs
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
pinnedTweetIdsany[] | any
Pinned tweet IDs
Afficher les propriétés
Any of:
any[]
Array of any
any
any
any
any
any
422Erreur de validation des paramètres
detailValidationError[]
Afficher les propriétés
Array of ValidationError
locstring | integer[]requis
Afficher les propriétés
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequis
Message de réponse (ex. 'success')
typestringrequis
inputany
ctxobject
Console interactiveGET
Console interactive / Tester l'APIGET
Live Console
🌐Serveur cible :https://api.twexapi.io
● Prêt pour la production
✍️
Guide d'identification d'écriture (Clé TwexAPI + Cookie Twitter)

1. Clé TwexAPI (Bearer Token) : À renseigner sous "Autorisation API" ci-dessous pour la facturation et l'authentification.

2. Cookie Twitter : Pour les opérations d'écriture (tweet, like, etc.), renseignez le Cookie Twitter (ex : auth_token=...; ct0=...) dans le champ cookie ci-dessous.

🔑Autorisation API
⚙️Paramètres (1)
📡
暂无响应数据

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

Requête
curl -X GET "https://api.twexapi.io/twitter/string/user_info" \
  -H "Authorization: Bearer YOUR_TOKEN"
Réponse
{
  "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
    ]
  }
}