Getting Webpage Data in Game

I would like to begin by mentioning that I am very new to HttpService.

I am attempting to get access to some of my game’s stats such as daily player counts/peaks from within the game itself. It seems that HttpService is the best way to do that. I have seen many examples of getting stats like this by taking them from a website.

One website that I came across is RTrack, which seems to have many different data variants and it seems to have exactly what I need. I decided to use my limited knowledge of HttpService to request data from this page, hoping to get this information. I couldn’t find any JSON data but I could find the data in the HTML, so I requested that and sorted through the string for the data. This worked, or at least to a degree…

My issue is that this website loads the page with default values, then immediately replaces those values with the actual ones when they load. This means that my HttpRequest gets only the default data when the page is first loaded, and not the actual stats of my game. How would I go about getting this data that loads in afterwards? Here is a link to RTrack:

https://v3.rtrack.live/landing

Thanks.

Hi there, RTrack is my site. The API endpoints which the site relies on are not intended for public use and so have measures in place to prevent them being scraped, this is likely why you’re having trouble. There is a public API on RapidAPI: Roblox Current and Historical Data API Documentation (admin-5CchmhpSc) | RapidAPI

This is currently quite limited, but more is being added as time goes on. Please let me know if you would like to see anything added as an endpoint. Depending on what your use case is, you may be able to stay within the free tier (50 free requests/month).

Thank you for the response and thanks for helping me in my attempt to find a solution. This makes sense. Unfortunately, I don’t think I can stay in the free tier for my uses. I have decided that I will get the players in my game at a given time with a proxy and periodically upload that to my data store to make my own data points. Thanks again.

1 Like