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.
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.