Hi,I want an example of using HttpService to get the game visits because I didn't find any tutorial on how to do that.
How to get the game visits using HttpService?
1 answer
You actually do not need to manually get them, you can rip stats, etc from the game page itself.
Since HttpService literally lets you see the structure of a webpage, you could by theory, grab the number from the page.
Edit: I would find the two above paragraphs to be wrong since you CANNOT get stats from Roblox sites due to "trust checks" as stated in:
https://wiki.roblox.com/index.php?title=User:Seranok/Using_HttpService#Restrictions
--
BUT, I unfortunately do not know how to do that so... I decided to do about an hour - two hours of research since such a topic is of my interest too -- it is NOT easy and I still don't know, really, but I'll provide what I can.
https://devforum.roblox.com/t/is-there-a-web-api-to-get-place-visits-or-currently-playing/169659
The above has an answer that describes getting total visits & people playing through a javascript, intended for a website.
Assuming you own a website, you could by theory use that, have it set to a JSON of some sorts then get code like in:
https://wiki.roblox.com/index.php?title=User:Seranok/Using_HttpService#Usage
To get that code from the JSON in the website of yours, to then display in your Roblox place.
All what I've recommended is hypothetical and isn't a true solution as I haven't tried it, but it was my best attempt.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
He's trying to get the number of visits the game has so he can put it in a print or gui to show how many visits the game has. He's not trying to exploit visits!
Umm...How can exploit the game visits and I'm very very noob scripter,I just wanna know the game visits like what asimo did in jailbreak in the live event.
Just go to your games page and see the visits no need for HttpService