MenuX profile

XUSER

Get X profile

Returns the public profile of one X account: name, bio, avatar and banner, verification, and follower, following and post counts.

GET/v1/twitter/user/profileSingle lookup

Auth

API key Get a key

Platform

XPublic data only

Pagination

NoneOne object per call
Base URLhttps://social-api.airaa.xyz
curl "https://social-api.airaa.xyz/v1/twitter/user/profile?username=NASA" \
  -H "X-API-KEY: $AIRAA_KEY"
Replace $AIRAA_KEY with your key
200Responseapplication/json
{
  "user": {
    "id": "11348282",
    "username": "NASA",
    "display_name": "NASA",
    "bio": "Making the seemingly impossible, possible. ✨",
    "profile_url": "https://x.com/NASA",
    "profile_picture_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
    "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290/1500x500",
    "is_verified": false,
    "is_blue_verified": true,
    "is_private": false,
    "follower_count": 92137703,
    "following_count": 115,
    "post_count": 74572,
    "created_at": "2007-12-19T20:20:32.000Z"
  }
}

Only id is always present; any other field is omitted when its value is not available. is_private is true for protected accounts, whose posts /v1/twitter/user/posts cannot return.

Quota

A request uses one request from your quota when it gets an answer about the data you asked for, including a 404 for an account or post that does not exist. Input errors such as a missing parameter are free, and so are 5xx responses. Access needs a grant for the endpoint; grants match from the most specific scope to the least, for example twitter.user.profile, then twitter.user, then twitter.

Parameters

Query string
usernamestringrequired

The account's handle. A leading @ is accepted and ignored; case does not matter

Example NASA

Response

200 · application/json

Absent fields are omitted, never null. Response conventions

FieldTypeDescription
userobject

The X account

user.idstring

Numeric account ID, as a string. The only field always present

user.usernamestring

Handle without the @, in the account's own casing

user.display_namestring

Name shown on the profile

user.biostring

Profile description. Links appear as t.co short links

user.profile_urlstring · url

https://x.com/{username}

user.profile_picture_urlstring · url

Avatar image URL

user.banner_urlstring · url

Header image URL

user.is_verifiedboolean

Legacy verification; most accounts are false

user.is_blue_verifiedboolean

Has the blue check (paid or affiliated verification)

user.is_privateboolean

true for protected accounts, whose posts are hidden

user.follower_countinteger

Followers

user.following_countinteger

Accounts this account follows

user.post_countinteger

Total posts, including replies and reposts

user.created_atstring · date-time

Account creation time, ISO 8601 UTC timestamp

Errors

{ "error": "message" }
StatusMeaningRetry
400

username is missing or empty. Does not use quota

{ "error": "username is required" }
No. Fix the request.
401

Missing or invalid X-API-KEY header

{ "error": "Invalid API key." }
No. Check the key.
403

Your plan does not include this endpoint, or your access is paused. code is endpoint_not_enabled, subscription_inactive or account_suspended. Does not use quota

No. Check your plan.
404

No account has this handle. Uses quota

{ "error": "This account does not exist." }
No. It doesn't exist.
429

Too many requests per second (code: rate_limited, retry after Retry-After), or the plan's quota is used up (code: quota_exhausted). Does not use quota

After your quota resets
502

The data could not be fetched right now. Retry later. Does not use quota

{ "error": "Internal Server Error." }
Yes, with backoff
503

Temporary outage. Retry after Retry-After when it is sent. Does not use quota

{ "error": "Service temporarily unavailable." }
Yes, after Retry-After
esc

Pages

Endpoints

↑↓ to move↵ to open