Getting An Account Age of a person outside the server

Hi everyone! I was wondering what property is the account created property for roblox.users api. Here is some of my code:

local data = Proxy:Get('https://users.rprxy.xyz/v1/users'..id)
	
print(data)

This code here returns this:

                    ["body"] = "",
                    ["headers"] =  ▼  {
                       ["alt-svc"] = "h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400",
                       ["cache-control"] = "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0",
                       ["cf-ray"] = "6b04515f1fe858c6-IAD",
                       ["connection"] = "close",
                       ["date"] = "Thu, 18 Nov 2021 21:33:33 GMT",
                       ["expect-ct"] = "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"",
                       ["expires"] = "Thu, 01 Jan 1970 00:00:01 GMT",
                       ["location"] = "https://rprxy-death.herokuapp.com/",
                       ["nel"] = "{"success_fraction":0,"report_to":"cf-nel","max_age":604800}",
                       ["report-to"] = "{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=YKuN3lYfhV%2Fzvip7wPBkeD7pngk5hVQbNWT%2BtdMbPOHjvKah41OerhJCtfRd3F4bRdpMFgpF3jAVBTVJOYvWFNMEFIVTXoEzEC30JRKdZ5cOMS2fagRxuy7b5VY1kAk6DQ4%3D"}],"group":"cf-nel","max_age":604800}",
                       ["server"] = "cloudflare",
                       ["transfer-encoding"] = "chunked",
                       ["vary"] = "Accept-Encoding"
                    },
                    ["status"] =  ▼  {
                       ["code"] = 302,
                       ["message"] = "Moved Temporarily"
                    }
                 }

However, on the api website, it says it should return this value:

image

Thank you!

Hello,
There are more simpler ways to do things like this.
Here you go! :wink:

local ID = 48558705
local Players = game:GetService(“Players”)

local Data = Players:GetPlayerByUserId(ID).AccountAge
print(Data)

This is only correct if that player is in the game. See the documentation for Players | Roblox Creator Documentation

To answer your question @GoddlyGut rprxy, at least at that domain is no longer is service. You’ll either need to find another proxy server or make your own. It looks like the owner has released his code for use if you want to host your own GitHub - sentanos/ProxyService

It appears another service is hosted here https://rprxy.deta.dev/

If you rely on these services to exist for your game’s needs you really want to set up your own proxy or find one that is guaranteed to be around in the long-term. These sorts of projects are typically short lived because hosting APIs is not free.

1 Like

a way that is only updates every join

DataService = game.GetService('DataStoreService')
dataStore = DataService:GetDataStore('playerAccountAge') 
function updatePlayerAccountAge(player)
    dataStore :SetAsync(player.UserId,player.AccountAge)
end

you can update it on player removing

game.Players.PlayerRemoving:Connect(updatePlayerAccountAge)

Do you want to kick under-age accounts?

Do these API’s you provided access the .created value from the roblox api?