v3
latestOpenAPI 3.0.32026-08-02415689.9 KBTechnical Endpoints
Convert User ID to Username
Converts a numeric Twitter/X user ID into the account's current username. Useful for resolving stored IDs back into human-readable handles, especially when usernames may have changed.
get/id-to-username/{user_id}
Path parameters
user_idstring required
user_id required
Response
OK
Example response
{
"handle": "elonmusk"
}