1
votes

I am using twitter rest api for reading user's twitter feed and searching tweets for specific hashtags. But twitter search api do not return tweets containing url in search result.

E.g. I have 2 tweets a) #hashtag b) #hashtag http://google.co.in/

below api returns only first tweet in search result https://api.twitter.com/1.1/search/tweets.json?q=%23promojuice Tweets containing any url are not returned in search result.

Does anyone have any clue about this?

1
Welcome to StackOverflow. Please take the tour, learn asking good questions stackoverflow.com/help/how-to-ask, make a minimal reproducible example. An MCVE should include a variety of sample input (illustrating all aspects) and desired output. You need to provide more info on context/background and what you have tried already.Yunnosch

1 Answers

0
votes

This is because Twitter search API has a limit of 7 days. Check the API documentation

The Twitter Search API searches against a sampling of recent Tweets published in the past 7 days.

The key word is sampling, Twitter Search API only returned what they consider relevant tweets.