Search/tweets: searching urls brings back 0 results

rest
search
api

#1

Hi,
We try to bring back the recent results for a url using the search api but we keep getting 0 results even if we see recent results via the public search.
Here is the link:

Here is the search via the website bringing back recent results:
https://twitter.com/search?q=http%3A%2F%2Fwww.lemonde.fr%2Felections-americaines%2Farticle%2F2016%2F02%2F19%2Fle-ton-monte-entre-le-pape-francois-et-donald-trump_4868087_829254.html&src=typd

here is the api search done in ruby:

url = "http://www.lemonde.fr/elections-americaines/article/2016/02/19/le-ton-monte-entre-le-pape-francois-et-donald-trump_4868087_829254.html"
encoded_url = CGI::escape(url)
options = {result_type: "recent", lang: nil, count: 15}
@api = Twitter::Client.new(:oauth_token => token, :oauth_token_secret => secret)
@api.search(encoded_url, options)

We manage to get results on other urls but it seems like for some domain names we always get 0 results, for example:

we already know that the search api is not supposed to return all tweets but having always 0 results for these urls seems like an error.

Thank you in advance for you response.


#2

Hi there, this might be related. The API is giving less tweets, a lot less.


#3

Same here.

I regularly searched my website (toshimaru.net) on Twitter, but it suddenly didn’t return any results.

Other websites are properly shown on Twitter search, so I guess some URLs are blocked by Twitter for some reason?


#4

Hi,

I am Using Twitter search API.

endpoint : https://api.twitter.com/1.1/search/tweets.json?q={my_encoded_shortened_url}.

When I am using twitter search tool(https://twitter.com/search-home) to search any URL, it is searching and giving me matching tweets. But when I am making api call to above enpoint with bearer token. Its not giving me any results. And I made sure that the shared tweets are not 7 days older.

I have spent 3-4 days to figure out the solution but no luck so far. Please help.

Thanks