Hello everyone!

I’m a PhD student in Ohio and I’m interested researching in how Zoos, Aquariums, National Parks, etc. communicate environmental information via twitter. I’m looking for a way to collect data on their tweets (e.g. number of likes, retweets, and comments) and create categories for their content. I thought of doing this manually by personally viewing each individual tweet in the past few years, but I wanted to check if there was an easier way first!

I appreciate any help or advice you can give! Thank you!
Cari

Hi Cari, thanks for reaching out!

We launched ‘Tweet Annotations’, fairly recently - you can check it out here: https://developer.twitter.com/en/docs/labs/overview/whats-new/annotations that can help you filter for the topics you mentioned

If you try the filtered stream endpoint - https://developer.twitter.com/en/docs/labs/filtered-stream/overview and use the detailed format in the query parameter - you should be able to see “stats” object in the json response which includes the metrics you mentioned like so:

stats: {
      "like_count": X,
      "quote_count": X,
      "reply_count": X,
      "retweet_count": X
    }

Hope that makes sense and let me know if you have additional questions.