Multiavatar API
Multiavatar API
12 Billion Unique Multicultural Avatars
Names-based avatars (identicons) in vector SVG and raster PNG formats for your website, community, or an app
Powered by Multiavatar
Examples
To get an avatar as SVG file, add .svg to the end of the URL:
To get an avatar as PNG file, add .png to the end of the URL:
JavaScript API call example to get SVG code:
https://api.multiavatar.com/Binx Bond.svg
Result (content-type: image/svg+xml)
To get an avatar as PNG file, add .png to the end of the URL:
https://api.multiavatar.com/Binx Bond.png
Result (content-type: image/png)
To get an avatar as SVG code, pass the avatar's ID as the URL parameter:
https://api.multiavatar.com/Binx Bond
Result (content-type: text/html)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 231 231"><path M33.83,33.83a115.5,115.5... ...></svg>
JavaScript API call example to get SVG code:
let avatarId = 'Binx Bond'
fetch('https://api.multiavatar.com/'
+JSON.stringify(avatarId))
.then(res => res.text())
.then(svg => console.log(svg))
fetch('https://api.multiavatar.com/'
+JSON.stringify(avatarId))
.then(res => res.text())
.then(svg => console.log(svg))
Result (content-type: text/html)
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 231 231"><path M33.83,33.83a115.5,115.5... ...></svg>
Limits
Default API limits for unauthenticated users are 20 calls per minute.
Currently, new API keys are not being issued. If you already have the API key, you can use it as described below.
Pass the API key as the URL parameter:
Currently, new API keys are not being issued. If you already have the API key, you can use it as described below.
Pass the API key as the URL parameter:
https://api.multiavatar.com/Starcrasher.png?apikey=YOUR_API_KEY
License
You can use Multiavatar for free for non-commercial and commercial purposes.
For details, please refer to the license.
For details, please refer to the license.
Updates
Join our mailing list to get the latest news about Multiavatar.
Links
[email protected]
Multiavatar v1.0 © 2020-2024