One account, two ways to find it
Username to user ID
Paste a handle or profile URL, then check the returned name and username before copying the ID. This is useful when a dataset or API request needs an account ID instead of a handle.
User ID to username
Choose the reverse direction and paste the full ID as digits. The result links to the account's current profile. A user ID does not reveal past usernames or recover an unavailable account.
Use account IDs in your project
Use IDs to connect account records across datasets, resolve the author IDs returned by an API, or keep a reference when a username changes. For repeated lookups, call TweetAPI from your own application.
Keep IDs as strings: a long ID can exceed JavaScript's safe integer range. The endpoint guides include JavaScript, Python and cURL examples.
Questions about user IDs
What is a Twitter user ID?
A user ID is the numeric identifier for a Twitter account. It is separate from the account's username and from the IDs assigned to its posts. Keep it as text when working with spreadsheets or code so you don't lose digits.
Can I look up an X profile URL?
Yes. Choose Username → user ID and paste the account's x.com or twitter.com profile URL. A bare username or @username also works. Post, search and list URLs aren't supported.
Can a user ID tell me an account's old usernames?
This tool returns the current username associated with a user ID. It does not keep username history. A former username may stop resolving or may belong to a different account.
Why did my lookup fail?
Check the input and selected direction first. Some accounts may be unavailable, and temporary service trouble or usage limits can prevent a lookup. A failed lookup does not prove that an account was deleted.
How fresh are the results?
Successful results can be reused for up to five minutes. The result shows when the profile was retrieved, including when it comes from the cache. Counts and usernames may change after that time.
Can I look up many accounts?
This free tool handles one account at a time. For repeated lookups in an application or research workflow, use the username and user-ID endpoints in the TweetAPI documentation.