65

Can I fetch the tweet from Twitter if I know the tweet's id?

2

8 Answers 8

99

@Adjam & @Gibron

You can use any user name and the url will redirect to the correct twitter handle.

For instance, if I go to:

twitter.com/anyuser/status/541278904204668929

The link redirects to:

https://twitter.com/MarkTabNet/status/541278904204668929
6
  • 6
    This is what I'm looking for. Wonder where did you get this.
    – guoc
    Sep 15, 2015 at 8:22
  • @Jim Can you provide an example tweet id that doesn't work, as well as it's url (if you happen to know it)? I'm assuming it's a public tweet and not a dm. Mar 30, 2020 at 14:10
  • @datalifenyc Thanks for providing with the link. I was wondering if only given a user id, that is to say I don't know the user's name, how to deal with that?
    – pandalai
    Aug 11, 2020 at 9:19
  • Apparently this is not working anymore, at least in some cases
    – Kr1
    Nov 2, 2021 at 11:51
  • @Kr1 Can you provide me with an example of a tweet that does not work? I will take a look. Nov 2, 2021 at 19:10
10

You don't need to use the API or know the user account.

Just drop it into the following URL format, where XXXXXXXXX is the tweet id.

https://twitter.com/i/web/status/XXXXXXXXX

6

Yes you can. Check out Twitter's API documentation

1
  • 2
    Page moved again; please see @Syed's answer as of 7/19/11.
    – Gibron
    Sep 24, 2014 at 19:22
4

yes we can fetch by https://dev.twitter.com/docs/api/1/get/statuses/show/%3Aid , if will fetch the status of the single id..

3

https://api.twitter.com/1/statuses/show/id.json

Example: https://api.twitter.com/1/statuses/show/130022282960715776.json

4
1

http://search.twitter.com/search.json?rpp=50?q=from:{twittername}

1
  • v1 API's are no longer active, v1.1 must be used.
    – Gibron
    Sep 24, 2014 at 19:24
0

Just look at the public API.

0

we could test twitter api in https://apigee.com/console/twitter

https://api.twitter.com/1.1/statuses/show/335393046625652736.json
1