How to check if a player is in a specific PlaceId or UniverseId

I want to check if the player userid is in a specific place. I’ve tried doing this with RoProxy but the placeId comes out as Null

Does anyone know a method how to check this? Or has a working API?

image

local API_URL = "https://api.roproxy.com/users/" .. Player_UserID .. "/onlinestatus/"

local Data = HttpService:GetAsync(API_URL)
Data = HttpService:JSONDecode(Data)

if Data.PlaceId == 11356220166 or Data.PlaceId == 11356217115 then -- Prints out as "Null"
    local Status = {
        "Playing", 
        Data2.isBanned,
        Data2.displayName,
        Data2.name
    }

    local Found = true

    Recieve_StatusClient:FireClient(You, Player_UserID, Status ,Found)
end
1 Like

Presence API

https://presence.roblox.com/docs#!/Presence/post_v1_presence_users

1 Like

Where would i need to put the userid in the link: https://presence.roblox.com/v1/presence/users

1 Like

Since it’s a Post requests you put it in a JSON table instead of the link, I’ll search for examples

2 Likes

I’ve been looking around for an hour and I’d recommend to read up on HttpService requests here to see what you can do.
I believe the body looks like this

{
  "userIds": [
     364141632 --UserId you want to use, separated by commas 
  ]
}

2 Likes