curl --request GET \
--url https://api.sorsa.io/v3/id-to-username/{user_id} \
--header 'ApiKey: <api-key>'
Copy
Ask AI
{
"handle": "elonmusk"
}
Technical 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}
User ID to Username
Copy
Ask AI
curl --request GET \
--url https://api.sorsa.io/v3/id-to-username/{user_id} \
--header 'ApiKey: <api-key>'