61

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.

Nemo
  • 2,441
  • 2
  • 29
  • 63
Matt
  • 611
  • 1
  • 6
  • 3
  • Any chance on telling us what programming language you want this in? – Neil Knight Nov 09 '10 at 11:04
  • 3
    I 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 Answers3

98

After struggling with this issue for a while, found a solution which works on mobile:

https://twitter.com/intent/user?user_id=XXX

Source: https://dev.twitter.com/discussions/3386

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:

https://twitter.com/account/redirect_by_id/783214

T.Todua
  • 53,146
  • 19
  • 236
  • 237
Jorge Palacio
  • 1,335
  • 11
  • 11
  • 3
    You 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
  • 8
    This 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