Twitter URL for a specific tweet

I have Javascript that uses the Twitter API to receive tweets. I parse the data and use jQuery to generate HTML for the DOM.

The aspect of what I want to display is the “View this tweet” link - yes, sorta sounds silly, but it allows the user to get the URL for a particular tweet.

I am creating a tag with href. The URL has the form:

http://twitter.com/{twitter-user-id}/status/{tweet-status-id} 

where the contents of the curly braces are the actual data extracted from the tweet (no, I do not include the curly braces). For example:

 http://twitter.com/Atechtrader/status/57432099984130050 

What happens in the work is that it works for some tweets, but not for others. For those who fail, the Twitter server responds with content that says the requested page does not exist.

Am I doing something wrong?

+68
twitter
Apr 13 '11 at 15:59
source share
5 answers

https://twitter.com/statuses/ID should work.
he will be redirected to the necessary status.

+114
Feb 24 '15 at 0:48
source share

FYI: id_str is a variable to be called instead of id

+32
Sep 15 '11 at 15:03
source share

Unfortunately, all the answers provided so far are based on HTTP redirects.

The direct link is: https://twitter.com/i/web/status/ {tweet-status-id}

+7
Jul 19 '17 at 21:58
source share

You can use as:

http://twitter.com/itdoesnotmatter/status/[YOURID]

Twitter redirects based on status identifier, not username.

It works for desktops and mobile devices.

+6
May 31 '16 at 21:19
source share

I have tried this. It works well: - Web: https://twitter.com/statuses/ID - Mobile && Web: https://twitter.com/User_ID/statuses/Tweet_ID

I hope this will be helpful to you.

-one
Nov 11 '17 at 3:54 on
source share



All Articles