I want to have a link to my twitter page that references it with my twitter ID and not twitter name. This is because I want to build the link into an app and the twitter name for the account may change in future.
Asked
Active
Viewed 5.9k times
61
-
Any chance on telling us what programming language you want this in? – Neil Knight Nov 09 '10 at 11:04
-
3I was just looking for a URL weblink. – Matt Nov 09 '10 at 21:21
-
So instead of www.twitter.com/someaccount I would like to refer to that page with someaccount's id. – Matt Nov 09 '10 at 21:22
-
This is unfortunate twitter does this. I was hoping you could do something like twitter.com/?id=819999. Facebook and LinkedIn both have ability to use the id instead of the username. – Scott Jul 20 '11 at 16:17
3 Answers
98
After struggling with this issue for a while, found a solution which works on mobile:
https://twitter.com/intent/user?user_id=XXX

Saša Tomislav Mataić
- 1,586
- 10
- 11
-
4
-
-
if you only have the username you could do `https://twitter.com/intent/user?screen_name=XXXX` – Angel S. Moreno Jul 04 '21 at 18:37
-
7Works as of Jan 4, 2022. I should mention it displays a popup suggesting to follow the account though. If that's something you'd rather avoid, use the `https://twitter.com/i/user/2857023470` approach suggested by Mert S. Kaplan below – mzrnsh Jan 04 '22 at 16:53
84
UPDATE: This answer doesnt work after 2013 (Read the official response in twitter's forum). For an alternate method see quarkon's answer.
Original Answer:
Use ID in the end of this url, like:

T.Todua
- 53,146
- 19
- 236
- 237

Jorge Palacio
- 1,335
- 11
- 11
-
3You can also make it look a little more pretty: https://twitter.com/account/redirect_by_id/76816072 - unfortunately still does not work when Twitter does a mobile redirect to the mobile.twitter.com subdomain. – Phil Jun 25 '13 at 22:40
-
8This method no longer works on desktop either and will return a 404 error page. – gorner Sep 09 '14 at 13:51
47
You can use new URL structure: https://twitter.com/i/user/50988711
Note: At the point of referral to mobile application is not yet stable.

Mert S. Kaplan
- 1,045
- 11
- 16
-
-
3
-
Looks like this is documented here https://developer.twitter.com/en/docs/twitter-for-websites/web-intents/overview – gelraen May 16 '22 at 09:04