Links
🖥

Sample Code

Sample code for how to implement in your website.

HTML

index.html
<img src="https://api.mineatar.io/body/069a79f4-44e9-4726-a5be-fca90e38aaf5?scale=4" alt="Notch's skin" />

React

components/PlayerBody.js
export default function PlayerBody({ uuid, scale = 4 }) {
return (
<img src={`https://api.mineatar.io/body/${uuid}?scale=${scale}`} alt="Player body" />
);
}

Discord.js Embed

commands/body.js
const { MessageEmbed } = require('discord.js');
​
// The following code will need to be placed within your message create
// event handler. This will send the embed to the channel within the
// `channel` variable.
​
const exampleEmbed = new MessageEmbed()
.setTitle('Steve\'s Skin')
.setColor(3066993)
.setImage('https://api.mineatar.io/body/069a79f4-44e9-4726-a5be-fca90e38aaf5?scale=4');
​
channel.send({ embeds: [exampleEmbed] });