htmlapitwittertwitter-follow

Display Twitter followers of a twitter account


How can I get the number of followers of any Twitter account? I want to display the number of followers of 4 different Twitter accounts in my web page, with the goal of determining who has the most followers.


Solution

  • Twitter API docs:

    https://dev.twitter.com/rest/public

    https://dev.twitter.com/rest/reference/get/users/show

    GET users/show
    https://api.twitter.com/1.1/users/show.json