Search code examples
mit-scratch

Get follower count on Scratch (API)


I am looking to find the follower count of a Scratch user using the Scratch API. I already know how to get their message count, with https://api.scratch.mit.edu/users/[USER]/messages/count/.


Solution

  • As mentioned by _nix on this forum thread, there is currently no API to achieve this. However, he/she rightly points out that the number can be obtained from a user's profile page.

    You may write a script (in JavaScript, for example) to parse the HTML and get the follower count in the brackets at the top of the page.

    Hope this helps!