Some Tweets not appearing in search api but appear in count


#1

I am running into strange behavior where tweets that should appear in the premium search api are not. Here is a simple real world example.

The query is from:LegalAnalysis

For example, the following Counts request:

https://api.twitter.com/1.1/tweets/search/30day/Dev/counts.json?query=from:LegalAnalysis&fromDate=201901190000&toDate=201901200000&bucket=day

says there are 137 tweets matching this request (according to my records, there should be 127 but lets leave that be for now). Great. However, if I actually make the request:

https://api.twitter.com/1.1/tweets/search/30day/Dev.json?query=from:LegalAnalysis&fromDate=201901190000&toDate=201901210000&maxResults=500

the results array comes back completely empty.

I am finding other tweets missing but this is a good specific example where a clear search query is not. Any thoughts on what could be causing this?


#2

I should add that I can confirm there are indeed tweets from this user on this date range on Twitter.


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.


opened #6

#7

Hello @guillermo,

Great question - Our premium APIs have a spam filter that removes high-confidence spam from the data endpoint’s payloads. This spam will, however, be included in the counts endpoint’s payload.