Retrieve tweet from its shorten URL


#1

Hello, when I click an URL on a tweet, Twitter transform it in shorten URL without original ID.
How to retrieve with REST APIs please. Thanks;


#2

You can do this without the Twitter API. Here is a discussion on stackoverflow for Python:

Once you have the full permalink, parse the Tweet ID from the URL.


#3

Thanks, and do you know, in JS, how to retrieve a tweet from its ID ? “search_tweets” seems to be a not adapted command, impossible to find the right one for specific ID.

 me._cb.__call(
			"search_tweets",
			"id:692597846713995264",
			function (reply, rate, err) {
			    //...
			},
			false // this parameter required
		);

#4

I’ve responded to the same question on this other thread.