curl --request GET \ --url https://api.sorsa.io/v3/username-to-id/{user_handle} \ --header 'ApiKey: <api-key>'
Copy
{ "id": "1"}
Technical Endpoints
Convert Username to User ID
Converts a Twitter/X username into the corresponding stable numeric user ID. Unlike usernames, user IDs never change, making them reliable for long-term storage and cross-referencing.
GET
/
username-to-id
/
{user_handle}
Convert Username to User ID
Copy
curl --request GET \ --url https://api.sorsa.io/v3/username-to-id/{user_handle} \ --header 'ApiKey: <api-key>'