Just noticed a spike of visitors following a t.co/LINKHERE a link re-written by twitter. Is there a way to track back to the twitter message that contained the link, if you know
You can do this using twitter API 1.1. The easiest way is to use the api is through the twitter API console. Here are the steps:
Goto https://dev.twitter.com/rest/tools/console
Select https://api.twitter.com/1.1
from the Service
dropdown menu.
Select OAuth 1
from the Authentication
dropdown menu and authorize with your twitter account.
Choose GET
/search/tweets.json
api.
Type the t.co link (e.g. https://t.co/w6iqrcuZMA
) in q
query parameter (Try both http and https links. In my case the http link returned no record while https link returned some records). All the search results will be returned in json format.
Now to open the actual tweet use this link (fill the placeholders of course): https://twitter.com/{user.screen_name}/status/{id_str}