Tweet search using hashtags stopped working

search

#1

API call to “https://api.twitter.com/1.1/search/tweets.json?q=%23covalent10” stopped working.

It was working perfect with no issues, but today it has completely stopped.
I’ve check the auth and everything is correct.

This is what I’m getting back in the response:
{
“statuses”: [],
“search_metadata”: {
“completed_in”: 0.011,
“max_id”: 682340023090298900,
“max_id_str”: “682340023090298880”,
“query”: “%23covalent10”,
“refresh_url”: “?since_id=682340023090298880&q=%23covalent10&include_entities=1”,
“count”: 15,
“since_id”: 0,
“since_id_str”: “0”
}
}

It’s showing that there are 15 tweets, which there are, but it’s returning none of them. Any ideas?


#2

Twitter’s REST search API endpoint only returns recent Tweets, from the last ~7 days or so.

A search on Twitter.com for the same provided term show the latest Tweet containing the term was published 15 days in the past: December 15.
https://twitter.com/search?q=%23covalent10&f=tweets

An empty result set is the expected result.


#3

I don’t see any results within the last 7 days for that search term. The Search API will only return results covering the past 7 days.


#4

So what endpoint should I be using to query for the tweets, since I want ones that are older than 7 days?


#5

There is no public endpoint that enables you to query for Tweets older than 7 days. If you need to retrieve those, you should look at Gnip’s Full Archive Search option, which is commercial.