curl --request GET \ --url https://api.sorsa.io/v3/username-to-id/{user_handle} \ --header 'ApiKey: <api-key>'
Copy
Ask AI
{ "id": "1"}
Technical Endpoints
Username to User ID
Returns the unique Twitter/X user ID for a given username. You provide the username, and the endpoint returns the corresponding stable user ID.
Use cases:
Developers converting usernames into IDs before making other API requests; SaaS platforms normalizing user identifiers in databases; analytics tools storing stable IDs instead of usernames; automation systems resolving usernames to internal identifiers; data pipelines preparing consistent user references for further processing.
GET
/
username-to-id
/
{user_handle}
Username to User ID
Copy
Ask AI
curl --request GET \ --url https://api.sorsa.io/v3/username-to-id/{user_handle} \ --header 'ApiKey: <api-key>'