How do I fetch the account age from the API?

Hey.

I’m not looking for an in-game solution.

What I need is something like an api.roblox.com link that will return anything that I could parse an account age from in python. I just need to know where to get it.

Now I could use an age calculator, but that’s a lot of effort with the way that ROBLOX store their account ages, as they use time, and i’m not aiming for that.

I just want the age returned in days.

EDIT: I will be fetching this from a HTTP GET request.

Thanks,
Sam.

1 Like

A GET request to this endpoint will give you a created date.

3 Likes

I’m looking for it to request the age in days.

Even so, I would calculate the age from the date myself but:
2020-02-22T16:29:21.192Z

This uses time and date, and will be hard to filter out.
If you have a way I could do it, I’m all ears.

If this is Python, you could probably use the datetime library.

from datetime import datetime

dateTime = datetime.strptime(YOUR_DATE_HERE, '%Y-%m-%dT%H:%M:%S.%fZ')

print(dateTime.year, dateTime.month, dateTime.day) # 2020, 2, 22
7 Likes

What is the date format?
image
Is it D/M/YYYY

When displayed on the profile, it’s MM/DD/YYYY. Returned from the endpoint, it’s YYYY/MM/DD.

2 Likes