Username to ID (/username-to-id)
What is it? This utility endpoint converts a human-readable X handle (e.g., elonmusk) into its unique, numerical X User ID (e.g., 44196397).
Why use it?
- Handling Renames: X handles can be changed by users at any time, but User IDs are permanent. For database consistency, you should always store and track users by their ID.
- Optimizing Requests: Many advanced Sorsa.io endpoints (like verification or follower lists) perform faster or more reliably when passed a
user_idinstead of alink. - Cross-Referencing: Use this to map data between different social platforms or internal CRM systems.