How to get player follower count?

  1. What do you want to achieve?
    I want to get the number of followers a player has.
    That way I can send myself a notification when/if someone famous joins my game UwU

  2. What is the issue?
    I can’t find any official API to do this.

  3. What solutions have you tried so far?
    I’ve thought about parsing the raw HTML but I’m hoping there’s an easier solution.

1 Like

You should take a look at Python Web Scraping using BeautifulSoup4 and the requests library, a similar way I did with this but instead you pass the data into your Roblox Game.

send a Get request to this url with python.

You can use the GetAsync function to get the data the Python Code received. I assume you have basic knowledge on this type of stuff.

1 Like

There’s an API for this. From the Friends API, /v1/users/{targetUserId}/followers/count. I recommend checking the API docs every time you want to perform some kind of interaction with the site first before either scraping the site or posting a question.

The above link shows all Roblox API docs. For just the friends API and usage examples, see the Friends API docs. That being said, when making your request, it should be to the friends subdomain of Roblox with (obviously) a proxy if you’re doing it ingame.


Oh that’s interesting…
I was looking at
looks like it’s not up to date when compared to what you linked

1 Like

As far as I’m aware that page contains legacy APIs. I don’t exactly know what Roblox is doing with their docs but adding the useConsolidatedPage part to the URL gives you all the current APIs. You can also view dedicated API pages by going through where x represents one of the options in the domains sidebar.

1 Like

Correct, ,it’s actually referenced to as proxyApi and legacyApi. Although not all APIs on the legacy API actually have alternatives yet, mostly undocumented ones, like /developerproducts/list.

Still would recommend using updated alternatives to legacy APIs where possible.