Filtering Retweets with premium Api (30 days sandbox)

python

#1

hello, i am wondering how can i remove the Retweets and the quote retweets from the API level? because they’re consuming the limit.
i tried using ‘-filter:retweets’ after the query but it doesn’t seem to work.

this is my code:
{“query”:“Example” , ‘-filter’:‘retweets’, ‘-filter’:‘UsernameExample’, “maxResults”:50 }


#2

If you are using the premium Search API, please make sure you are using the operators that are available for those endpoints.
https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/premium-operators

I believe you are looking for -is:retweet and -is:quote


closed #3

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