Skin & Head API
Avatars, 3D heads, body renders, raw skins, capes and profile data for every Java player – fast, cached, CORS-open. Built for plugins, websites, Discord bots and launchers.
https://cubelore.com/api/v1/Get an API keyTry it live
https://cubelore.com/api/v1/avatars/Notch?size=96https://cubelore.com/api/v1/heads/Notch?size=110https://cubelore.com/api/v1/renders/bust/Notch?size=120https://cubelore.com/api/v1/renders/body/Notch?size=100https://cubelore.com/api/v1/skins/NotchAll 3D renders accept view presets or free yaw/pitch angles – drag the sliders. Overlay layers (hats, jackets), slim arms and legacy 64×32 skins are rendered correctly.
…
Endpoints
| Endpoint | Description | Parameters | Returns | |
|---|---|---|---|---|
| GET | /api/v1/avatars/{id} | Face (2D) with optional hat layer | size=8–512 · overlay=true|false · default=404 | image/png |
| GET | /api/v1/heads/{id} | 3D head – isometric by default, any angle via view/yaw/pitch | size=16–512 · view=iso|front|back|left|right|top|iso-left|iso-back|low · yaw=-180…180 · pitch=-90…90 · overlay=true|false · default=404 | image/png |
| GET | /api/v1/renders/bust/{id} | 3D bust (head, torso, arms) | size=32–1024 · view / yaw / pitch · overlay · model=slim|classic | image/png |
| GET | /api/v1/renders/body/{id} | 3D full body (any angle) – flat=1 for the classic 2D front render | size=32–1024 · view / yaw / pitch · overlay · model · flat=1 (2D) | image/png |
| GET | /api/v1/skins/{id} | Raw 64×64 skin texture | default=404 · download=1 | image/png (64×64) |
| GET | /api/v1/capes/{id} | Cape texture (if the player owns one) | – | image/png · 404 no_cape |
| GET | /api/v1/profiles/{id} | Profile JSON: UUID, name, model, skin/cape URLs & hashes, legacy flag, name history, render URLs, Cubelore profile | – | application/json |
| GET | /api/v1/uuid/{name} | Resolve a username to its UUID | – | application/json |
| GET | /api/v1/servers/{slug} | Live status of a server listed on Cubelore | – | application/json |
{id} accepts a username (case-insensitive) or a UUID with or without dashes; an optional .png suffix is ignored. Unknown players return the Steve fallback image unless default=404 is set.
Examples
HTML
<img src="https://cubelore.com/api/v1/avatars/Notch?size=64" alt="Notch">
<img src="https://cubelore.com/api/v1/heads/Notch?size=128">
Java (Spigot/Paper – Gson)
String url = "https://cubelore.com/api/v1/profiles/" + player.getUniqueId();
JsonObject p = JsonParser.parseString(
new String(new URL(url).openStream().readAllBytes())).getAsJsonObject();
String headPng = p.getAsJsonObject("renders").get("head").getAsString();
JavaScript
const r = await fetch("https://cubelore.com/api/v1/uuid/Notch");
const { uuid, name } = await r.json();
curl
curl -H "X-API-Key: cl_…" "https://cubelore.com/api/v1/profiles/Notch"
Rate limits
| Client | Requests |
|---|---|
| Anonymous (per IP) | 600 / 10 min |
| With API key (Free) | 3,000 / 10 min |
| With API key (Cubelore+) | 12,000 / 10 min |
| With API key (Pro) | 60,000 / 10 min |
Send the key as ?key=, X-API-Key header or Authorization: Bearer. Headers X-RateLimit-Limit / X-RateLimit-Tier are returned; 429 with Retry-After when exceeded. Browser tags normally never hit the anonymous limit thanks to caching.
Good to know
- Images are cached for 24 h (ETag + Cache-Control); skin changes appear within a few hours. Data comes live from Mojang with a cache in front – every existing account works.
- Unknown players get the default Steve render plus header
X-Cubelore-Fallback: true - CORS is open (Access-Control-Allow-Origin: *) – use it directly from browsers.
- Free for commercial and non-commercial use. A small “Skins by Cubelore” credit is appreciated but not required. No bulk scraping of the whole player base, please – use the per-player endpoints.
- Errors are JSON:
{"error":"player_not_found","status":404}