xAPIs.dev
API Reference · v1
{ }OpenAPI YAMLGet API key
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. All responses are wrapped in a standard envelope: `{ "status": "success", "msg": "...", "data": ... }`.

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

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": {
    "userName": "elonmusk",
    "name": "Elon Musk",
    "isBlueVerified": true,
    "followers": 240376815,
    "following": 1147,
    "statusesCount": 73820,
    "createdAt": "Tue Jun 02 20:12:29 +0000 2009"
  }
}
base url · https://v2.xapis.dev