How can I make a live visits counter in my game? Thanks!
1 Like
You won’t be able to make a live visits counter but you can make one that’s relatively accurate. You’ll need to poll from the /v1/games endpoint of the Games API. Relevant post I made a while back that has instructions on fetching data from there:
You can use that code as a guideline. Put your game’s id (specifically the game id not the place id) as a parameter and check the visits value instead of the playing value.
If you are looking for a place visits counter and not a game visits counter, I have no idea how to pull that off, sorry. I’d have thought it might be under /v1/multiget-place-details but that JSON data does not include a place visits counter.
1 Like
Thank you very much, I’ll check it out!
It’s not working anymore…
pls can you fix it???