[Javascript w/Roblox API] How can I check if a game is public?

I want to make code that sends a message when a specific game becomes public but I don’t know how to do this and what Roblox Games API to use.

Any help is appreciated.

check these out Collected list of APIs

use roblox games v1 api. (multiget-place-details)
javascript code example:

var placeID = 000000000
fetch('https://games.roblox.com/v1/games/multiget-place-details?placeIds='+String(placeID))
  .then((response) => response.json())
  .then((data) => {
      if (data[0].isPlayable) {
        console.log("Game is public")
      }else{
        console.log("Game is private")
      }
		}
	);

also note that it needs cookie authorization to work for example it wont work if you’re not logged in and will return true if the game is private but you own it
you can run the example in https://games.roblox.com/docs (open console and paste it there)
image

another way to do it is by using a web scraper