How do I get a user's last online information with the Roblox Users API?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    So I’m trying to make a game where you can see info about a user. It’s pretty cool and I have a lot of info you can see about Roblox player (friends/friend amount, profile description, etc.) I want to use the Roblox Users API (the same API i used to get most of the info) to get their last online date + time. However, I haven’t found any way to do this in the documentation.

  2. What is the issue? Include screenshots / videos if possible!
    I can’t figure out how to do this. There isn’t documentation on how to do it, so I don’t know how people like @Alexrocks911 figured out how to do it.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Nobody really uses the Roblox APIs in games, so there isn’t anything on the DevHub. I didn’t find anything on the DevForum either. I didn’t try anything because I couldn’t find any documentation or reference.

You could probably just save tick() or even the time/date using the player’s datastore. You could then reference that player’s datastore when you create the friend list menu.

No, I mean someone that’s never even played the info game.

Oh I see. Do you mean the last time they were online on the website?

2 Likes

Yeah, or a game. I know how to do this with Player:GetFriendsOnline(), but that’s only for their friends, and I want it to be able to get online info on any player.

Try this:

local URL = "http://api.rprxy.xyz/users/UserId/onlinestatus/"
Get = game.HttpService:GetAsync(URL)
LastOnline = game.HttpService:JSONDecode(Get).LastOnline
3 Likes

Ah, thanks! I just didn’t know what API link I needed to get.

1 Like

You can find all the APIs here.
They only need to place the proxy,then you just replace the part of roblox.com with rprxy.xyz.

Original link: https://api.roblox.com/
For HttpService: https://api.rprxy.xyz/

1 Like


I don’t see any docs here

Press Domains and then on what you want to search:

1 Like