Does anyone know if there is a web API for getting the places of a game?

Title. I have looked through the API list on the wiki, but haven’t found anything. The closest I’ve found is this script:

local pages = game:GetService("AssetService"):GetGamePlacesAsync()

while true do
   for _,place in pairs(pages:GetCurrentPage()) do
      print("Name: " .. place.Name)
      print("PlaceId: " .. tostring(place.PlaceId))
   end
   if pages.IsFinished then
      break
   end
   pages:AdvanceToNextPageAsync()
end

The problem with it is that I have to be in the game. A web API would be more useful, especially if I don’t have ownership of the game.

1 Like

https://develop.roblox.com/docs/#!/Universes/get_v1_universes_universeId_places

Universes are nowadays referred to as games, while places are places.
game.GameId if you use this in relation to in-game to external server use, otherwise you can find the game ID from configuring your game and copying the numeric ID part of the URL https://www.roblox.com/universes/configure?id=<<this part>>#/#basicSettings

1 Like

Thank you! I didn’t even know this existed, but it’ll be really helpful.