Username → UUID
The starting point for almost everything: turns a name into the dashless UUID the rest of the API keys off.
https://api.mojang.com/users/profiles/minecraft/{name} Opencurl -s -X GET \
"https://api.mojang.com/users/profiles/minecraft/{name}" + Response, notes and alternate hosts
Example response
{
"name": "jeb_",
"id": "853c80ef3c3749fdaa49938b674adae6"
}The name is matched case-insensitively and the response carries the real casing. A `legacy` flag appears for accounts never migrated to a Mojang account, and `demo` for accounts that do not own the game.
Same endpoint, other hosts
https://api.minecraftservices.com/minecraft/profile/lookup/name/{name}Same response, and not affected by the 403 misconfiguration.https://api.mojang.com/minecraft/profile/lookup/name/{name}
Errors
- 404 No account has that name.
- 403 api.mojang.com returns these at random — a known misconfiguration (WEB-7591). Retry, or use the api.minecraftservices.com form.