bbc_ut
#1
Hi, I am using Twitter API to analyze follower information of a specific Twitter account. But I am having a hard time further exploring the results. For example, after I get a list of the followers’ ID, I want to identify like top 10 important followers (sort results by the number of followers). So my question is, is there any good way to get the number of followers of a list of Twitter IDs (~135k accounts)?
I owuld look up the users by id with GET /2/users | Docs | Twitter Developer Platform and with public_metrics in user.fields expansions like this, using twurl for example:
twurl "/2/users?ids=2244994945,6253282&user.fields=public_metrics"
bbc_ut
#3
Thanks for the reply! this makes total sense to me! Can I have a follow-up question? if I am collecting only retweets, can I identify the author (username) of the original tweet? what I am dealing with this is extracting the username from the text (like extract “xxx” from “RT @xxxx”), I’m wondering if there is any more convenient way to do this.
Sure - this author object will be in the includes and so is the original tweet, when specifying expansions: Using fields and expansions | Docs | Twitter Developer Platform