Skins

API - Skins

Explanation of parameters
  • {pseudo} Player's nickname : Faragnight
  • {type} Allows you to choose between the full skin or the head of the player : head | body
  • {vr.hr} Vertical and horizontal rotation : 10.5
  • {hrh} Horizontal rotation of the head : 10
  • {vrll.vrrl} Vertical rotation of the left and right leg : 10.25
  • {vrla.vrra} Vertical rotation of the left and right arm : 25.12
  • {ratio} Sets the image size: Default 12
Obligatory parameter Optional parameter
Obtaining the skin via the nickname
HTML - Integration from the image tag
<img src="https://minecraft-api.com/api/skins/{pseudo}/{type}/{vr.hr}/{hrh}/{vrll.vrrl}/{vrla.vrra}/{ratio}" alt="Skin généré par Minecraft-api.com" />

PHP - Texture recovery in JSON format
<?php
$json = file_get_content('https://minecraft-api.com/api/skins/{pseudo}/{type}/{vr.hr}/{hrh}/{vrll.vrrl}/{vrla.vrra}/{ratio}/json');
echo $json;
?>
Response from API
Image (base64):


Skin de Faragnight

JSON:

{"skin": "base64..."}

Obtaining the player's head
HTML - Integration from the image tag
<img src="https://minecraft-api.com/api/skins/{pseudo}/{type}/{vr.hr}/{hrh}/{ratio}" alt="Tête généré par Minecraft-api.com" />

PHP - Texture recovery in JSON format
<?php
$json = file_get_content('https://minecraft-api.com/api/skins/{pseudo}/{type}/{vr.hr}/{hrh}/{ratio}/json');
echo $json;
?>
Response from API
Image (base64):


Minecraft-API.com skin player Minecraft-API.com skin player

JSON:

{"head": "base64..."}