%# FIXME: Use CDN %>
Fork me on GitHubAccepted parameters: size, helm, default.
Accepted parameters: scale, helm, default.
Please note renders are still beta and have some issues. New renders are in progress!
Accepted parameters: scale, helm, default.
Please note renders are still beta and have some issues. New renders are in progress!
Accepted parameters: default.
Accepted parameters: default.
In the examples above, you can generally use usernames instead of uuid. However, apart from the special cases MHF_Steve
and MHF_Alex
this is discouraged as explained below.
You can append .png
or any other file extension to the URL path if you like to, but all images are PNG.
Attribution is encouraged but not required.
If you want to show some support for this (free!) service, place a notice like this somewhere:
You can tweak images using query string parameters.
Example: <%= domain %>/avatars/853c80ef3c3749fdaa49938b674adae6?size=4&default=MHF_Steve&helm
<%= config.avatars.min_size %> - <%= config.avatars.max_size %>
<%= config.renders.min_scale %> - <%= config.renders.max_scale %>
true
.
MHF_Steve
or MHF_Alex
, depending on the requested UUID. All usernames default to MHF_Steve
.
UUIDs may be any valid Mojang UUID in the blank or dashed format.
Malformed UUIDs are rejected.
We strongly advise you to use UUIDs instead of usernames! UUIDs never change while usernames do.
Looking up players by username has officially been deprecated by Mojang ever since UUIDs were introduced.
Crafatar uses a legacy API to retrieve skins for usernames that updates very slowly.
Skins come without any details, including whether a player uses the Alex or Steve skin model.
Additionally, Mojang has stated that this legacy interface may be disabled anytime, causing all requests to fail.
Malformed usernames are rejected.
Crafatar caches skins for <%= config.caching.local / 60 %> minutes before checking for skin updates.
Images are cached in your browser for <%= config.caching.browser / 60 %> minutes until a new request to Crafatar is made.
When you changed your skin you can try clearing your browser cache to see the change faster.
Crafatar supports CORS, so you can make AJAX request from other sites!
Responses come with some custom HTTP headers, useful for debugging.
Please note that these headers are cached by CloudFlare (CF-Cache-Status: HIT).