Suddenly Search.SearchTweets stopped working

Jul 1, 2015 at 7:07 PM
Edited Jul 1, 2015 at 7:44 PM
I have a console application that tries to retrieve twitts from an account, everything worked fine a week ago, but when I tried to run it today, it suddenly returned 0 twitts, no error, just 0 twitts.

I tried updating my dlls, changing the account (even though I am sure it has twitts), and changing the credentials, but I am still getting zero results.

I'm going crazy!!
here's my code:
TwitterCredentials.SetCredentials(ConfigurationManager.AppSettings["AccessToken"], ConfigurationManager.AppSettings["AccessSecret"], ConfigurationManager.AppSettings["ConsumerKey"], ConfigurationManager.AppSettings["ConsumerSecret"]);

                TweetSearchParameters searchParams = new TweetSearchParameters(ConfigurationManager.AppSettings["Account"]);
                string dateTimeFormat = ConfigurationManager.AppSettings["DateFormat"].ToString();
                DateTime until = DateTime.ParseExact(ConfigurationManager.AppSettings["Until"].ToString(), dateTimeFormat, null);
                DateTime since = DateTime.ParseExact(ConfigurationManager.AppSettings["Since"].ToString(), dateTimeFormat, null);
                searchParams.MaximumNumberOfResults = int.Parse(ConfigurationManager.AppSettings["MaximumNumberOfResults"].ToString());
                searchParams.TweetSearchType = Tweetinvi.Core.Interfaces.Parameters.TweetSearchType.OriginalTweetsOnly;
IEnumerable<ITweet> tweets = Search.SearchTweets(searchParams);
Jul 1, 2015 at 7:55 PM
I figured it out..
my first test was with

Since: 06/01/2015 (june 1st)
Until: 06/02/2015 (june 2nd)
Return: 0 tweets

Since: 06/01/2015 (june 1st)
Until: 06/14/2015 (june 14th)
Return: 0 tweets

Since: 06/01/2015 (june 1st)
Until: 06/24/2015 (june 24th)
Return: 30 tweets --> All corresponding to june 23rd

Since: 06/01/2015 (june 1st)
Until: 06/30/2015 (june 30th)
Return: 96 tweets --> All from june 23rd and up

it seems that the API is only returning one week of twitts.
any ideas?
I know for a fact that there are twitts prior to June 23..

here's my proof:

am I using it the wrong way? is there another filter I need to add so the API would return twitts more than only a week old?
thank you!
Jul 1, 2015 at 11:03 PM
Hi there,

I will have to add this to the documentation as many developers ask the same question.
Twitter Tweet Search API is limited to a very small timeframe of 1 to 3 weeks (this vary).

It means that if you do not save the tweets you will no longer be able to search for these after a certain period.
In order to get all the tweets matching a specific criteria you will have to use a FilteredStream and store this in your DB.

Then query your DB to search for the tweets older than a week.

Jul 2, 2015 at 1:01 AM

I have updated the search documentation with details concerning the date limitation.