Profile of an X account by handle.
GET/users/{handle}
- Takes: Username
- Passive: the target is not contacted
- Cost: 1 credit
Returns the account's public profile. Every response also carries the credits charged and the remaining balance.
Path parameters
handleThe account handle
Response fields · 8ShowHide
id
Numeric user ID
handle
Account handle
name
Display name
followers
Follower count
created_at
When the account was created
credits_charged
Credits used by this call
balance_remaining
Credits left
request_id
Identifier to quote when reporting a problem
curl 'https://api.xdataapi.io/v1/users/example_user' \
-H 'x-api-key: YOUR_API_KEY'{
"data": {
"id": "1000001",
"handle": "example_user",
"name": "Example User",
"followers": 1200,
"created_at": "2015-04-01T12:00:00Z"
},
"credits_charged": 1,
"balance_remaining": 999,
"request_id": "req_example123"
}