How to use Swagger UI? (API)

Lately ive been trying out httpservice (discord webhooks etc), And i needed some help on trying to get an accounts creation date, And i found a way to do so but i dont really understand how it works. (Print A Player's Account Age - #2 by desuhookvw)

So, how do i post/request data to this thing and why does it sometimes tell me “HttpService is not allowed to access ROBLOX resources”?

It because you are trying to access the website restricted to Roblox only. To access Roblox resources you need to do users.roproxy.com..smth. Also if you saw post #3 you can access the player “age” with player.AccountAge. So why the hassle of using HTTPService?

Edit: The users Roblox website doesn’t have player account age info, so def use AccountAge

Because i need the account age of a player who ISNT in the game

My bad sry. Seems like you can access the creation date with httpservice

local httpservice = game:GetService('HTTPService')
local url = "https://users.roproxy.com/v1/users/"..-- Player id here
local data = httpservice:JSONDecode(httpservice:GetAsync(url))
print(data.created) -- Prints the *date* created
-- You can use os to convert the date to what you want. dk how to do it here

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.