hi, I have a question, can I get a game’s data (i mean: Visits, Players, Likes and more) in a script. Is it possible?
You would need to use a proxy to make a web request. There’s no native way to do this.
I don’t know how to get it, but answering your other question
I think yes, Jailbreak made an event at 2B visits I guess, the event started at that amount of visits, I guess the game got the amount of visits.
should i create a weeb site (i will don’t do it) or i will get the data from the game link?
i tried UrlEncode with the game link and it prints this:
https%3A%2F%2Fwww%2Eroblox%2Ecom%2Fgames%2F4586593855%2FShowdown
You can’t request from the Roblox website directly with HttpService.
Normally it would go something like:
- Roblox server makes a request to your third-party site.
- Your website makes a request to Roblox for the analytics data.
- Your website returns that result to the Roblox server.
You can use a proxy like rprxy.xyz to make an HTTP request to the game page. Using the proxy, you can make requests to the game API docs. https://games.roblox.com/docs#!/Votes/get_v1_games_votes and https://games.roblox.com/docs#!/Games/get_v1_games should be what you’re looking for.
Edit: Replied to the wrong person, sorry. I meant to reply to @briana_superstar
hi, i read the links u send but i don’t know how to use it, any help?
If you make a GET request to https://games.rprxy.xyz/v1/games?universeIds=yourGameIdHere, you’ll get a JSON formatted string. You can use HttpService:JSONDecode
to convert it to a Lua table. Then, you can use thatTable.data.visits
to get the number of visits and thatTable.data.playing
to get the number of people playing.
The other endpoint, https://games.rprxy.xyz/v1/games/votes?universeIds=yourGameIdHere, would be pretty much the same process. Once you have a table, you can get thatTable.data.upVotes
or thatTable.data.downVotes
to get likes/dislikes.
If you don’t know how to make a GET request, I’d look at the wiki page for HTTPService
hi, i have this script:
local HttpService = game:GetService("HttpService")
local GameLink = 'https://games.rprxy.xyz/v1/games?universeIds=4586593855'
local Data = HttpService:GetAsync(GameLink)
Data = HttpService:JSONDecode(Data)
Data = Data.data
warn(Data.upVotes)
but it always warns ‘nil’
i tried this: local Data = HttpService:GetAsync(GameLink)
warn(Data)
and it only warns:
I made a module long ago that does exactly this:
Also utilizes rprxy.
You need to use the universe id, not the place id. The universe id is the one in the URL when you’re under the “Configure Game” page on the website.