unavatar

Get unified user avatar.

The service will determinate the user avatar querying multiple social services 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

Fallback

In case the service doesn't determinate a valid avatar, you can provide one using fallback query parameter

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

as JSON

Alternatively you can get the avatar url adding /json

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

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

Specifying the service

Each service 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

Other domain

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

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