v1

latestOpenAPI 3.0.0BSD-3-Clause2026-07-146135105.7 KB
avatars

Get Country Flag

You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.

get/avatars/flags/{code}

Path parameters

codestring required

Country Code. ISO Alpha-2 country code format.

Query parameters

widthinteger

Image width. Pass an integer between 0 to 2000. Defaults to 100.

heightinteger

Image height. Pass an integer between 0 to 2000. Defaults to 100.

qualityinteger

Image quality. Pass an integer between 0 to 100. Defaults to 100.

Response

Image