I have script, which make portals to other my games, but some of my games are closed for a while time, but still exist in my module list.
Question, how i can get this information(private/public status of the game/place)?
Roblox API, service or yourself?
I tried to find it in MarketplaceService, not found…
Maybe try this api? It returns a bool called isPlayable when you pass a placeId which may be what you’re looking for, but I am pretty sure you need to send a valid auth cookie with the request or else it’ll return unauthorized. You’ll have to use a proxy and update a bot cookie once in a while.
That is why I mentioned the proxy. You’ll have to write a web server that acts as a proxy in between the Roblox game and the endpoint. Modifying this script will probably work. If you pass the placeId through the query or post data then use it in the request you’re sending from the proxy then you can get past the block. If you don’t understand javascript or nodejs enough dm me and I’ll do my best to help.
EDIT:
I’d recommend using glitch.me for the web server. It’s really easy to get started with.
Right… But i tried to find this issue all day (and continue), not only looking at the documentation. I think that i can be understood.
But anyway i know about meaning of 401 and incorrect “cookie syntax”.
function e(gamee)
local link = "https://www.rprxy.xyz/places/api-get-details?assetId="..gamee
local request = h:JSONDecode(h:GetAsync(link))
return {
["IsPlayable"] = request.IsPlayable
}
end
No the problem is that if you use your own proxies or other open source proxies like roproxy, somehow the isPlayable variable is always false. But on this api endpoint using Roblox instead: https://www.roblox.com/places/api-get-details?assetId=PLACEID, and even thought you use your own proxy, it still returns isPlayable variable as false all the time. Is there a way to fix this?
i’ll try to make a guess, but is this because your requests aren’t authorized or smth (no auth tokens)?
like… unautorized people can’t join places at all, this seems logic
I found a fix, first I just get the id of the creator of the game, then check all the public games they made, then check if that game’s id is in the list of public games made by the creator’s id. If that game is not on the list that means it’s private, if it is on list that means game is public.
Api endpoints to do check all public games of a creator’s id: