v1
latestOpenAPI 3.0.12026-07-17110111.4 KBRetrieves 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