Find a tweet with a known t.co link

api

#1

I have a t.co link via referral and I’d like to find the tweet that has that t.co link in it. What’s the best way to go about a search like this with the API?

Thanks


#2

@happycamper Any thoughts on this? I have access to the paid version of premium api.


#3

@salcan

What’s the use case for finding the Tweet through the API?

Since t.co’s are unique, you can try just using the url: operator for Tweets within the last 30 days:
curl “https://api.twitter.com/1.1/tweets/search/30day/testeroo.json?maxResults=100&query=url:DlTIi21JQv OR url:oVMXJh2y3Q”

However this would waste all of your requests.