UUID

API - Uuid

Obtaining the UUID via the player's nickname
<?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;
?>
Response from API
Plain text:

edd56acaa5534459b6825898e5e37ad6

JSON:

{"uuid": "edd56acaa5534459b6825898e5e37ad6"}

Obtaining the nickname from 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;
?>
Response from API
Plain text:

Faragnight

JSON:

{"pseudo": "Faragnight"}