Retrieves a single user by their username from X.

This function fetches a specific user from X using their username. It allows for optional expansions to be included in the response. The function returns a promise that resolves to the user data, including various user attributes and public metrics.

post/getByUsername

Request body

Response

Successful response with user data

Changes