UUID

API - Uuid

Obtention de l'UUID via le Pseudo
<?php
$uuid = file_get_content('https://minecraft-api.com/api/uuid/{pseudo}');
$json = file_get_content('https://minecraft-api.com/api/uuid/{pseudo}/json');
echo $uuid;
echo $json;
?>
Réponse de l'API
Plain texte:

edd56acaa5534459b6825898e5e37ad6

JSON:

{"uuid": "edd56acaa5534459b6825898e5e37ad6"}

Obtention du pseudo depuis l'Uuid
<?php
$pseudo = file_get_content('https://minecraft-api.com/api/pseudo/{uuid}');
$json = file_get_content('https://minecraft-api.com/api/pseudo/{uuid}/json');

echo $pseudo;
echo $json;
?>
Réponse de l'API
Plain texte:

Faragnight

JSON:

{"pseudo": "Faragnight"}