'Is there a way to filter out retweets in the twitter postman api?

I've got 3 really simple programs scraping recent tweets with specific terms in them [autistic friendship, autistic neurodiversity, and autistic research]. I can set up the api to give me all sorts of extra information about the tweets it delivers, but I keep getting dozens of copies of the same tweet via retweets. Does anyone know how to filter these out?

-Sincerely, a confused psych researcher.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source