Home > Blockchain >  Retrieve viral tweets topic from Twitter API
Retrieve viral tweets topic from Twitter API

Time:10-20

I'm trying to retrieve viral tweets for an academic project using the Twitter API v2. There is a viral tweet example

It has id 1284234742661963776 so my thoughts was to query using context annotations. However there is no entity related to viral tweets on the API. I've tried to input this entity id using context id 131 which corresponds to the Twitter Unified Taxonomy, but got nothing. Did someone manage to retrieve them? Are not all topics on Twitter available on the API?

Here is an example of the code I used

retrieve viral tweet using tweepy

CodePudding user response:

Not all topics available on Twitter are part of the context annotations provided via the Twitter API.

  • Related