XDevelopers
.
https://x.com/XDevelopers
To convert this username to the user ID, you will have to use the users lookup endpoint with the username and find the numerical user ID in the payload. In the case of @XDevelopers, the user ID is 2244994945.
In Postman, navigate to the “Params” tab and enter this user ID into the “Value” column of the id parameter.
Key | Value |
id | 2244994945 |
Key | Value | Returned fields |
tweet.fields | created_at | tweets.created_at |
expansions | author_id | includes.users.id , includes.users.name , includes.users.username |
user.fields | created_at | includes.users.created_at |
max_results | 5 |
https://api.x.com/2/users/:id/timelines/reverse_chronological?tweet.fields=created_at&expansions=author_id&user.fields=created_at&max_results=5
id
params field, which is why the above URL includes :id
and not 2244994945.Key | Value |
pagination_token | t3buvdr5pujq9g7bggsnf3ep2ha28 |