List of countries

Headers

NameTypeDescription
AuthorizationstringoAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.

Query parameters

NameTypeDescription
langstringOptional parameter changing language in the response (English if lang is not specified).
withStatesbooleanOptional parameter. Adds states field for each country in the response.

Response

A JSON object with the following fields in an array for every country:

FieldTypeDescription
codestringTwo-digit country/state code in ISO 639-1 format
namestringCountry/state name in the specified language
Language
Authorization
Query