Profile of an X account by username.
GET/user/by-username
- Takes: Username
- Passive: the target is not contacted
- Cost: 1 API unit
Returns the public profile with verification flags, counts and creation date.
Query parameters
usernameUsername without the @
Response fields · 11ShowHide
id
User ID
username
Username
name
Display name
bio
Profile bio
location
Profile location
verified
Legacy verified status
isBlueVerified
Paid verification
followerCount
Followers
followingCount
Accounts followed
tweetCount
Tweets posted
createdAt
Account creation time
curl 'https://api.tweetapi.com/tw-v2/user/by-username?username=example_user' \
-H 'X-API-Key: YOUR_API_KEY'{
"data": {
"id": "1000001",
"username": "example_user",
"name": "Example User",
"verified": false,
"isBlueVerified": true,
"followerCount": 1200,
"followingCount": 150,
"tweetCount": 3400,
"createdAt": "2015-04-01T12:00:00.000Z"
}
}