unavatar

Get unified user avatar (source code).

The service will determinate the user avatar querying multiple social providers and serve it to you.

It can obtain the user avatar based on the input:

From username

<img src="https://unavatar.now.sh/:username" />

e.g., https://unavatar.now.sh/kikobeats

From email

<img src="https://unavatar.now.sh/:email" />

e.g., https://unavatar.now.sh/sindresorhus@gmail.com

From domain

<img src="https://unavatar.now.sh/:domain" />

e.g., https://unavatar.now.sh/reddit.com

Query Parameters

Fallback

In the cases that is not possible determinate the user avatar, unavatar provide one by default.

Customize it using fallback query parameter

e.g., https://unavatar.now.sh/daftpunk?fallback=https://i.imgur.com/0d1TFfQ.jpg

You can pass fallback=false for disabling it.

JSON

Alternatively you can get the avatar url adding the query parameter json

// https://unavatar.now.sh/kikobeats?json

{
  "url": "https://pbs.twimg.com/profile_images/971687520324014080/lkYxX5SG_400x400.jpg"
}

Providers

Each provider has its own endpoint, so you can query it directly.

Clearbit

<img src="https://unavatar.now.sh/clearbit/:domain" />

e.g., https://unavatar.now.sh/clearbit/microlink.io

DeviantArt

<img src="https://unavatar.now.sh/deviantart/:username" />

e.g., https://unavatar.now.sh/deviantart/spyed

Dribbble

<img src="https://unavatar.now.sh/dribbble/:username" />

e.g., https://unavatar.now.sh/dribbble/omidnikrah

Facebook

<img src="https://unavatar.now.sh/facebook/:username" />

e.g., https://unavatar.now.sh/facebook/zuck

GitHub

<img src="https://unavatar.now.sh/github/:username" />

e.g., https://unavatar.now.sh/github/mdo

Gravatar

<img src="https://unavatar.now.sh/gravatar/:email" />

e.g., https://unavatar.now.sh/gravatar/sindresorhus@gmail.com

Instagram

<img src="https://unavatar.now.sh/instagram/:username" />

e.g., https://unavatar.now.sh/instagram/willsmith

Reddit

<img src="https://unavatar.now.sh/reddit/:username" />

e.g., https://unavatar.now.sh/reddit/kikobeats

SoundCloud

<img src="https://unavatar.now.sh/soundcloud/:username" />

e.g., https://unavatar.now.sh/soundcloud/gorillaz

Telegram

<img src="https://unavatar.now.sh/telegram/:username" />

e.g., https://unavatar.now.sh/telegram/drsdavidsoft

Twitter

<img src="https://unavatar.now.sh/twitter/:username" />

e.g., https://unavatar.now.sh/twitter/kikobeats

YouTube

<img src="https://unavatar.now.sh/youtube/:username" />

e.g., https://unavatar.now.sh/youtube/caseyneistat