How would I get the most popular games right now, and their visits and how many people are playing them? Thanks!
For those who are too lazy to actually read the question's description, this guy wants to get the front page games, he is not asking how to make his game popular, so stop putting "Too Broad" moderation claims on this question.
As for the question itself, here is a list of web apis which let you grab the front page games. The middle one looks promising to me.
You are going to need to use HttpService:GetAsync()
with a proxy such as this one in order to make a request to the api. From that point, use HttpService:JSONDecode()
.
Example:
local hs = game:GetService("HttpService") local function GetFrontPageGames() local result = hs:GetAsync("http://rprxy.xyz/games/list-json", true) return hs:JSONDecode(result) end local games = GetFrontPageGames() print("The most popular game is", games[1].Name)
How to get your game popular is by scripting and building good games with purpose which can take awhile but once your there you should be able to promote if you buy robux and get people to play your amazing game!