Skip to content
Twexapi
English
Esc
navigateopen⌘Jpreview

Get user info by auth token

Retrieve Twitter user info using the provided auth token.

Back to API Reference
/Cookie Endpoints
GET/twitter/{auth_token}/user_info
Authorization
AuthorizationBearer token · headerrequired
Global API Bearer Token for TwexAPI. Included as: Authorization: Bearer <YOUR_TWEXAPI_KEY>.
Path Parameters
auth_tokenstringrequired
Responses
200Twitter user info
codeintegerrequired
msgstringrequired
dataUserInfo | anyrequired
Show properties
Any of:
UserInfo
userIdstringrequired
User ID
isBlueVerifiedbooleanrequired
Blue verification status
createdAtstringrequired
Account creation date
createdAtDatetimestring | any
Account creation datetime in ISO format
Show properties
Any of:
string
string
any
any
defaultProfilebooleanrequired
Default profile flag
defaultProfileImagebooleanrequired
Default profile image flag
descriptionstringrequired
Bio description
locationstringrequired
Location
fastFollowersCountintegerrequired
Fast followers count
favouritesCountintegerrequired
Likes count
followersCountintegerrequired
Followers count
followingCountintegerrequired
Following count
hasCustomTimelinesbooleanrequired
Has custom timelines flag
isTranslatorbooleanrequired
Is translator flag
listedCountintegerrequired
Listed count
mediaCountintegerrequired
Media count
namestringrequired
Display name
normalFollowersCountintegerrequired
Normal followers count
pinnedTweetIdsStrany[] | any
Pinned tweet IDs
Show properties
Any of:
any[]
Array of any
any
any
any
possiblySensitivebooleanrequired
Possibly sensitive flag
profileImageUrlHttpsstringrequired
Profile image URL
usernamestringrequired
Username
statusesCountintegerrequired
Tweets count
translatorTypestring | any
Translator type
Show properties
Any of:
string
string
any
any
verifiedbooleanrequired
Legacy verification status
verified_typestring | any
Verification badge type: blue, business, government, etc.
Show properties
Any of:
string
string
any
any
withheldInCountriesany[] | any
Withheld in countries
Show properties
Any of:
any[]
Array of any
any
any
any
protectedbooleanrequired
Protected account flag
urlstring | any
User profile URL
Show properties
Any of:
string
string
any
any
descriptionUrlsany[] | any
Description URLs
Show properties
Any of:
any[]
Array of any
any
any
any
urlsany[] | any
User URLs
Show properties
Any of:
any[]
Array of any
any
any
any
pinnedTweetIdsany[] | any
Pinned tweet IDs
Show properties
Any of:
any[]
Array of any
any
any
any
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Interactive ConsoleGET
Interactive Console / Try APIGET
Live Console
🌐Target Server:https://api.twexapi.io
● Production Ready
✍️
Write Operation Credentials Guide (TwexAPI Key + Twitter Cookie)

1. TwexAPI Platform Key (Bearer Token): Enter under "API Authorization" below for request billing & authentication.

2. Twitter Account Cookie: For write operations (tweet, like, follow, etc.), provide the target Twitter account's Cookie (e.g. auth_token=...; ct0=...) in the cookie field of Request Body below.

🔑API Authorization
⚙️Parameters (1)
📡
No Response Yet

Configure parameters in the Request tab and click Send Request below.

Request
curl -X GET "https://api.twexapi.io/twitter/string/user_info" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "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
    ]
  }
}