POST
/
twitter
/
users
Get Multiple Users by Usernames
curl --request POST \
  --url https://api.twitterxapi.com/twitter/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '"elonmusk"'
{
  "code": 200,
  "msg": "success",
  "data": [
    {
      "userId": "<string>",
      "isBlueVerified": true,
      "createdAt": "<string>",
      "createdAtDatetime": "<string>",
      "defaultProfile": true,
      "defaultProfileImage": true,
      "description": "<string>",
      "location": "<string>",
      "fastFollowersCount": 123,
      "favouritesCount": 123,
      "followersCount": 123,
      "hasCustomTimelines": true,
      "isTranslator": true,
      "listedCount": 123,
      "mediaCount": 123,
      "name": "<string>",
      "normalFollowersCount": 123,
      "pinnedTweetIdsStr": [
        "<any>"
      ],
      "possiblySensitive": true,
      "profileImageUrlHttps": "<string>",
      "username": "<string>",
      "statusesCount": 123,
      "translatorType": "<string>",
      "verified": true,
      "withheldInCountries": [
        "<any>"
      ],
      "protected": true,
      "url": "<string>",
      "descriptionUrls": [
        "<any>"
      ],
      "urls": [
        "<any>"
      ],
      "pinnedTweetIds": [
        "<any>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · string[]

A list of Twitter usernames or profile URLs. Provide multiple times for multiple users (e.g., [elonmusk,sundarpichai]).

Response

200
application/json

A list of user profile objects. Unfound users are represented by null.

Batch users API response