X API
Look up X user
get/x/users/{id}
Path parameters
idstring required
X username (without @) or user ID
Response
User profile
Example response
{
"id": "9876543210",
"username": "elonmusk",
"name": "Elon Musk",
"description": "CEO of Tesla, SpaceX, and X",
"followers": 150000000,
"following": 500,
"verified": true,
"profilePicture": "https://pbs.twimg.com/profile_images/example.jpg",
"location": "Austin, TX",
"createdAt": "2009-06-02T20:12:29Z",
"statusesCount": 35000
}