user3239600
user3239600

Reputation: 321

Twitter search api until and since parameters

Preamble:

What am i doing wrong? How can i get tweets in a date range (with more than a 10 days)?

Here is my code:

var params = {
    count: 3, 
    until: "2015-10-08", 
    from: "[any_random_user]"
};

$.ajax({
   url: twitterApi + "search/tweets.json",
   type: "GET",
   dataType: "jsonp",
   data: params ,
   success: function (response) {
      console.log(response);
   }
});

PS https://dev.twitter.com/rest/public/search

PPS I am using 1.1 API version.

Upvotes: 0

Views: 2442

Answers (1)

Terence Eden
Terence Eden

Reputation: 14324

This is not possible. As is mentioned on the page you linked to, the search service is limited for API users.

As per the documentation

Keep in mind that the search index has a 7-day limit. In other words, no tweets will be found for a date older than one week.

You can download individual user's Tweets (up to 3,200 of them) if you are only interested in that user's Tweets.

Upvotes: 2

Related Questions