Skip to main content
Version: V1

Avatar

Avatar API is used for querying the ENS avatar of an Ethereum address or ENS name.

Structure

The endpoint URL for requesting the avatar:

https://cyberprofile-v2.vercel.app/api/avatar/{id}

The endpoint URL for requesting the avatar with a specific image size is:

https://cyberprofile-v2.vercel.app/api/avatar/{id}?s={s}
FieldTypeDescription
idStringGet the ENS avatar of this Ethereum address or ENS name.
sIntegerThe number of pixels of the avatar in square: min is 1, max is 2048.

With correct inputs, you can retrieve an image of the requested ENS avatar.

Example

Here is an example of querying ENS avatar. Feel free to test it out in Next Swagger Doc Demo App!

https://cyberprofile-v2.vercel.app/api/avatar/pisofa.eth?s=400

Find below the example return result:

Avatar

Designed by