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

Avatar

Introduction

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.

Endpoint

Get
   https://api.oyyi.xyz/v1/avatar

Parameter

  • id

    Pass userid or any id if you want to have same avatar everytime
    • id - string id for persistent avatar response
    • Default - Null

Example

import requestsr = requests.get($BASE_URL/avatar)
Laravel
use Illuminate\Http\Client\Response;use Illuminate\Support\Facades\Http;$url = '$BASE_URL/avatar';$response = Http::get($url);if ($response->successful()) {    $data = $response->json();} else {    $message = $response->json()['message'];}
curl $BASE_ROUTE/avatar?id=rahul;

Response

Response will be binary png image

alt textalt textalt text