Adorable Avatars

Adorable Avatars

  • Category: Development


Adorable Avatars Public API - Generate Unique Avatars for Your Applications

Adorable Avatars is a public API that helps you generate unique avatars for your applications. The API is simple to use and requires no authentication or registration. Simply make use of the API endpoint and specify a unique identifier, and the API will generate a unique avatar for you.

How to Use the Adorable Avatars Public API

Basic Usage

To use the Adorable Avatars public API, include the following endpoint in your code:

https://api.adorable.io/avatars/[size]/[identifier].png

Replace [size] with the desired size of the avatar (max size 512). Replace [identifier] with a unique identifier that represents the user or entity for which you want to generate the avatar.

For example:

const avatarImg = document.createElement('img');
const identifier = 'johndoe';

avatarImg.src = `https://api.adorable.io/avatars/256/${identifier}.png`;

document.body.appendChild(avatarImg);

This code creates a new img element, specifies an identifier of "johndoe", sets the src attribute to the Adorable Avatars API endpoint, and adds the img element to the DOM.

Avatar Shapes

By default, the Adorable Avatars API will generate rounded avatars. If you want to generate avatars with different shapes, simply append /shape to the endpoint https://api.adorable.io/avatars/[size]/[identifier].png.

For example, to generate an avatar with a square shape, use:

const avatarImg = document.createElement('img');
const identifier = 'janedoe';

avatarImg.src = `https://api.adorable.io/avatars/256/${identifier}/square.png`;

document.body.appendChild(avatarImg);

Avatar Colors

You can also specify a custom background color for your avatars. To do this, append /[color] to the endpoint https://api.adorable.io/avatars/[size]/[identifier].png.

For example, to generate an avatar with a blue background, use:

const avatarImg = document.createElement('img');
const identifier = 'janedoe';

avatarImg.src = `https://api.adorable.io/avatars/256/${identifier}/blue.png`;

document.body.appendChild(avatarImg);

Avatar Sets

In addition to generating avatars using unique identifiers, Adorable Avatars also allows you to generate sets of avatars. To do this, append /set/[set_number] to the endpoint https://api.adorable.io/avatars/[size]/[identifier].png.

For example, to generate a set of 10 avatars in random colors, use:

for (let i = 1; i <= 10; i++) {
    const avatarImg = document.createElement('img');
    avatarImg.src = `https://api.adorable.io/avatars/256/set${i}.png`;

    document.body.appendChild(avatarImg);
}

Conclusion

The Adorable Avatars public API is a simple and effective way to generate unique avatars for your applications. By leveraging the API's endpoint and various optional parameters, you can customize and generate avatars in a variety of styles and colors to fit your application's needs.

Visit to Adorable Avatars website

Similar APIs of Development

Screenshot One

Screenshot One

Development

Render websites and HTML as images. Block cookie banners and ads. The API uses the latest Google Chrome for rendering and Google Cloud Platform for performance and scalability.

screenshotscreenshotrender

API2Cart

API2Cart

Development

API2Cart provides a unified shopping cart API for interaction between the eCommerce software and 30+ shopping carts including Magento, Shopify, WooCommerce, BigCommerce, OpenCart, PrestaShop and others.

shopifycommercepresta

Qrcode monkey API

Qrcode monkey API

Development

This is the official QRCode Monkey API for professional usage. Integrate custom and unique looking QR codes into your system or workflow. This API is perfect for creating thousands of high quality QR codes in png or svg vector format.

qrcodegeneratesvg

Product Hunt API

Product Hunt API

Development

Product Hunt now (finally) has its own api. Through this api you can access posts of the day, tech posts, filtered with a category, add a post etc. You can fetch list of users. Fetch comments, threads, notifications and even upvote your favorite products. The api lets you provide complete product hunt experience at one place. Use the api to get a taste !

productfeaturevote

Apptigent PowerTools

Apptigent PowerTools

Development

Essential utilities for string translation, text to speech, currency conversion, stock quotes, QR code generation, image processing, email validation, data transformation, scientific calculations and more!

translateredactconvert

reSmush

reSmush

Development

Photo optimization free API

imageoptimizationfree

Base API

Base API

Development

Base offers APIs for image and file storage, user authentication,email sending and more ...all in a single service!

authenticationemail

Dummy API

Dummy API

Development

Simple API that includes a common data for most of the applications. Like user info, some posts, comments, etc. This data is free to use for presentations, demos, learning tutorials. It is created especially for your education. Designed and deployed especially for your experiments API service ready to respond to your Client Application with close to real data.

educationtestingskill

Screencast O Matic API

Screencast O Matic API

Development

Screencast-O-Matic provides an E2E screen recording solution for developers. Solution Builder can be used for a simple integration into an existing workflow or for application providers who require full functionality with tight integration.

Screenrecorderapi

PhantAuth

PhantAuth

Development

Random User Generator + OpenID Connect Provider. Like Lorem Ipsum, but for user accounts and authentication. The OpenID Connect Provider of PhantAuth supports the flows listed in the OpenID Connect specifications (Hybrid, Implicit, Authorization Code), as well as the Resource Owner Password grant type, specified in the OAuth 2.0 specifications. PhantAuth as an OpenID Connect Provider can be integrated with a variety of web applications, mobil applications, and backend applications. The integration can be either direct, as in the case of the OpenID Connect Provider, or through an authentication integration service, as in the case of Auth0, Okta or Azure Active Directory B2C. To learn more, please go to chapter Integration.

openidauth0okta