Avatar

Use this api route to get random and unique avatar for api. Use it for default profile pic or profile placeholder for any website ,app or anywhere. You don't need any library to generate avatar , just a simple http request.

info

This api route don't require any authentication or token and can be used anywhere.

Endpoint

GET - /avatar

By default it will return random avatar from database.

Params

id optional

pass userid or any id if you want to have same avatar everytime

id - `string id for persistent avatar response`

Default - `Null`

Response

Response will be binary png image

alt textalt textalt text

Example

GET $BASE_ROUTE/avatar?id=rahul;
Contributors: coder9118