Electroid / mojang-api

Bundle multiple Minecraft APIs into a single GET request.
https://api.ashcon.app/mojang/v2/user/Notch
MIT License
239 stars 18 forks source link

Account creation date? #16

Closed h1rule closed 5 years ago

h1rule commented 5 years ago

Is there a way to get the time when the account was created through this API?

Electroid commented 5 years ago

I don't believe Mojang publishes this information publicly, if you know a place where I can find it, please mention and I can include it!

Electroid commented 5 years ago

@h1rule Looks like this is technically possible but I will need to evaluate whether it is technically feasible with Cloudflare's request restrictions.

Electroid commented 5 years ago

I'll be adding a created_at: <date> field in v2. Unfortunately, if the account has name changes or is legacy, it will not work, so will show null. This will be merged and deployed early this week!

Additionally, the date will be as accurate as the hour. Too many requests are required to get minute and second accuracy.

Electroid commented 5 years ago

The created_at field is now GA and live in v2 - 17a2438aaf136189dee821f0cf128508167fa7d5

Electroid commented 5 years ago

Just to notify you can trust to use it in production! @h1rule