Skip to content

chewhx/ui-avatar-emoji

Repository files navigation

ui-avatar-emoji

API for generating avatars with Apple Color Emoji.

Endpoint

https://ui-avatar-emoji.vercel.app/api/avatar

API

Emoji

Default: 👻

https://ui-avatar-emoji.vercel.app/api/avatar?emoji=😀

Background

Default: d0ebff

HEX color code without '#'

https://ui-avatar-emoji.vercel.app/api/avatar?background=c3fae8

Random color

https://ui-avatar-emoji.vercel.app/api/avatar?background=random

Rounded

Default: 0

https://ui-avatar-emoji.vercel.app/api/avatar?rounded=15

For circle

https://ui-avatar-emoji.vercel.app/api/avatar?rounded=true

Size

Default: 64

https://ui-avatar-emoji.vercel.app/api/avatar?size=128

Size is restricted to min 32 and max 256.

  • Smaller than min will return 32.
  • Larger than max will return 256.