I am starting with API for academic research so I really need your help. I would like to request the followers count but I dont know under which key and value should I make the request. Here is a screenshot of the request so far.
Thank you very much.
It looks like you are calling their “Recent Search” endpoint: Twitter API v2
With the response, you would want to loop over the data array, and extract the author_id and add it to another array.
With the user’s data, you can then call their “Followers of user ID” endpoint:
You can then count the data array, for the # of followers for each of those users!
Then with this list you could call their followers/list endpoint: GET followers/list | Docs | Twitter Developer Platform