Filtering out Retweets from API Search Requests


#1

Hi,

I’m trying to search for unique tweets using the Premium API’s fullarchive mode, and I would like to get the most I can out of my requests. As of right not, my requests are returning many tweets that are just retweets (they each have a unique status id, but the body is just “RT @user: …”). I know you can filter out retweets using the Standard Search API by including “exclude”:“retweets” in the query passed into the request, but it doesn’t seem to work with the Premium Search API.

Thanks in advance,
David


#2

you want the rule is:retweet but that’s not available in sandbox mode: https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/operators-by-product