Fetch an X user profile by handle
x_get_userGet an X profile by handle: display name, bio, location, website, avatar and banner, follower, following, tweet and like counts, verification status, pinned tweet and join date. Read-only: returns public data and changes nothing. Costs 1 credit per request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"handle": "<handle>"
},
"name": "x_get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | X handle / screen name, with or without the @, or the profile link, e.g. "elonmusk" or "https://x.com/elonmusk". | |
| cacheOnly | No | Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true. | |
| cacheMaxAgeHours | No | Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24. |