See the Pen Twitter Tweet URL Generator by Bramus (@bramus) on CodePen.
Today I learned that Twitter totally ignores the username in the “tweet detail route” on their website. This allows you to view details of a (public) tweet when knowing only its ID, without needing to access the Twitter API (which is the default geeky approach I was first going to take).
Embedded above is a small tool I built to help you with that. Simply enter the Tweet ID and hit “Generate URL”.
~
Twitter’s tweet detail route has the form of https://twitter.com/{userName}/status/{tweetId}. When passing in a tweetId with a non-matching/invalid userName, the Twitter website will automatically redirect to the URL with the correct userName
Example: To see the contents of the tweet with id 932586791953158144 just visit https://twitter.com/anyuser/status/932586791953158144 and you’ll be redirected to its actual URL: https://twitter.com/bramus/status/932586791953158144
Handy 😊
~
Thank me with a coffee.
I don’t do this for profit but a small one-time donation would surely put a smile on my face. Thanks!
To stay in the loop you can follow bramus on Bluesky or subscribe to the RSS feed.
Ingenious. Thank you so much!
Thank you so much !
Do you know how to use this method to create Dataset of tweets?
I would like to know too.
Thank You so much for the idea!
Thank you so much it was very helpful.