Hello Robloxians! Today I will show you how you can receive a popup notification on your phone, every 30 minutes, which tells you your Roblox game’s Player Count! Let’s begin:
Refer to this Devforum post which explains how to use the Roblox API.
From there, we can browse to this Github Repo which lists the endpoints, and I have tried them all for you, dear reader! The one which contains the information we need, is the one for “Get a user’s profile games”.
Open that api URL and substitute your own Roblox UserID. For example, my Roblox Profile’s page is here and that contains my UserID of 2031724732. To see my list of games, I would enter my Roblox UserID into that api URL so it would be https://www.roblox.com/users/profile/playergames-json?userId=2031724732
Let’s call this your “target URL” which we need to use later
Try visiting that URL and you’ll see a wall of text! But that contains exactly the information we need. What we need next, is a way to extract the Player Count from this wall of text, and that’s the work I did, dear reader, and you can see it here on Regex101
Please note, this Regex contains the PlaceID for my game, Slither Simulator - you will need to update the Regex to search for your PlaceID instead.
We’re going to use a free account on Make.com to wire up some automation. Once you have created your account there, follow these steps to install the App on your Android or iOS device and link it to your Make account.
Inside your Make account, create a new Scenario.
Inside the Scenario, add a new Module. The 1st module’s job, is to go out to the web and request the raw information. For this module, select the HttpRequest and configure it with the “target URL” we developed earlier. The rest of the settings can be left at default. Mine looks like this:
Click the little bump on the right of the 1st module to connect the 2nd module, which we will use the TextParser this time. This module’s job is just to get the Player Count from the wall of text. For the Pattern input, paste in the Regex which you customized with your own PlaceID. Mine is configured like this:
Last step is to pop a Notification on your phone. Click the bump on the right side of the TextParser to add another Module. Search for the Android (or iOS) module and configure it like so:
For the Body, select “Value” from the Text parser. This extracts just the game’s Player Count, as the content of the notification.
I configured the click action to open my game’s URL on Roblox. I experimented with the “Collapse push notifications” setting but my preference is “No” there so I can see multiple.
In the bottom left of your Scenario, turn on scheduling and select a 30 minute interval. Press the Play button to try it out.