v1
latestOpenAPI 3.0.32026-07-213841124.9 KBTechnical Endpoints
User ID to Username
Returns the current Twitter/X username for a given user ID. You provide the user ID, and the endpoint returns the corresponding username.
Use cases:
Developers converting stored user IDs back into readable usernames; SaaS platforms displaying handles in dashboards while keeping IDs internally; analytics tools resolving IDs when exporting reports; automation systems syncing internal records with current usernames; CRM systems updating handles if a user has changed their username.
get/id-to-username/{user_id}
Path parameters
user_idstring required
user_id required
Response
OK
Example response
{
"handle": "elonmusk"
}