xAPIs.dev
API Reference · v2
Free Tools{ }OpenAPI YAMLGet API key
API Reference / User / Get user info

Get user info

GET/twitter/user/info1 credit

Return a complete profile for any public Twitter account, including counts, verification, and account metadata. The sample response below is captured from the live API. List endpoints paginate with `has_next_page` and `next_cursor`.

Authentication required
Send your key in the x-api-key header. Requests without a valid key return 401.

Query parameters

userName
stringrequired
The @handle of the account, without the @ symbol.

Response fields

dataobject
Response payload.
statusstring
Request status: "success" or "error".
msgstring
Status message from the upstream.
data.userNamestring
The account handle.
data.namestring
Display name shown on the profile.
data.isBlueVerifiedboolean
Whether the account carries a verified badge.
data.followersinteger
Current follower count.
data.followinginteger
Number of accounts followed.
data.statusesCountinteger
Total number of posts.
data.createdAtstring
Account creation timestamp.
Request
curl https://v2.xapis.dev/twitter/user/info \
  -G --data-urlencode "userName=elonmusk" \
  -H "x-api-key: $XAPIS_KEY"
Response200 OK
application/json
{
  "status": "success",
  "msg": "success",
  "data": {
    "id": "44196397",
    "name": "Elon Musk",
    "userName": "elonmusk",
    "location": "",
    "url": "",
    "description": "Starmind",
    "entities": {
      "description": {}
    },
    "protected": false,
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "followers": 240742077,
    "following": 1366,
    "favouritesCount": 238191,
    "statusesCount": 105322,
    "mediaCount": 4593,
    "createdAt": "2009-06-02T20:12:29.000000Z",
    "coverPicture": "https://pbs.twimg.com/profile_banners/44196397/1774145451",
    "profilePicture": "https://pbs.twimg.com/profile_images/2053244804520427520/m8mdWZCG_normal.jpg",
    "canDm": false,
    "affiliatesHighlightedLabel": {},
    "isAutomated": false,
    "automatedBy": null,
    "pinnedTweetIds": [
      "2073311697474076672"
    ]
  }
}
base url · https://v2.xapis.dev
Ready to call Get user info?