XUSER
Get X profile
Returns the public profile of one X account: name, bio, avatar and banner, verification, and follower, following and post counts.
/v1/twitter/user/profileSingle lookuphttps://social-api.airaa.xyzcurl "https://social-api.airaa.xyz/v1/twitter/user/profile?username=NASA" \ -H "X-API-KEY: $AIRAA_KEY"
{
"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 stringusernamestringrequiredThe account's handle. A leading @ is accepted and ignored; case does not matter
Example NASA
Response
200 · application/jsonAbsent fields are omitted, never null. Response conventions
| Field | Type | Description |
|---|---|---|
| user | object | The X account |
| user.id | string | Numeric account ID, as a string. The only field always present |
| user.username | string | Handle without the @, in the account's own casing |
| user.display_name | string | Name shown on the profile |
| user.bio | string | Profile description. Links appear as t.co short links |
| user.profile_url | string · url | https://x.com/{username} |
| user.profile_picture_url | string · url | Avatar image URL |
| user.banner_url | string · url | Header image URL |
| user.is_verified | boolean | Legacy verification; most accounts are false |
| user.is_blue_verified | boolean | Has the blue check (paid or affiliated verification) |
| user.is_private | boolean | true for protected accounts, whose posts are hidden |
| user.follower_count | integer | Followers |
| user.following_count | integer | Accounts this account follows |
| user.post_count | integer | Total posts, including replies and reposts |
| user.created_at | string · date-time | Account creation time, ISO 8601 UTC timestamp |
Errors
{ "error": "message" }| Status | Meaning | Retry |
|---|---|---|
| 400 |
{ "error": "username is required" } | No. Fix the request. |
| 401 | Missing or invalid { "error": "Invalid API key." } | No. Check the key. |
| 403 | Your plan does not include this endpoint, or your access is paused. | 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 ( | 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 { "error": "Service temporarily unavailable." } | Yes, after Retry-After |