unavatar

Get unified user avatar.

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" />

i.e https://unavatar.now.sh/kikobeats

From email

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

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

From domain

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

i.e 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

i.e 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 his own endpoint, so you can query it directly.

GitHub

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

i.e https://unavatar.now.sh/github/mdo

Facebook

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

i.e https://unavatar.now.sh/facebook/zuck

Gravatar

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

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

Instagram

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

i.e https://unavatar.now.sh/instagram/willsmith

Twitter

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

i.e https://unavatar.now.sh/twitter/kikobeats

YouTube

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

i.e https://unavatar.now.sh/youtube/caseyneistat

Other domain

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

i.e https://unavatar.now.sh/domain/reddit.com