How to know if a player is online? [ROBLOX API]

I would like to know if there is a way you could know if a player is online using the Roblox APIs. I am was trying to use api.roblox.com/users/{userid} on Python which returns this JSON formatted dictionary:

{'Id': {UserId}, 'Username': 'Username', 'AvatarUri': None, 'AvatarFinal': Boolean, 'IsOnline': Boolean}

However, dictionary['IsOnline'] seems to not function and is always false.

Is there any way I could get around this?

1 Like

Upon testing I also experience this issue. It appears to be consistent.

image

Try submitting a #platform-feedback:website-bugs? (There could be a better area for this type of report but I could not tell)

1 Like

I believe that’s a bug. I have seen times where it turns up inconsistent to the current stats on the user.

1 Like

Seems the only thing I could do.

I did find a post that mentioned another Endpoint that seemed to work.

If you have this issue you can use: https://api.roblox.com/users/{USERID}/onlinestatus/

no it dosent work, i’ve been looking for workarounds for this type of thing

Swagger UI ???

https://presence.roblox.com/v1/presence/users
here, with updated solution.

you’ll need the “userPresenceType” only. because its the only thing that states the user status.
image

here’s the number mean:

please spread this solution

1 Like

no why? just learn to search for something

1 Like

idk what i was thinking at the time