Countries

Returns a list of all countries.

Query Parameters

ParameterTypeRequiredDefaultDescription
languagestringNoenLanguage code for the country name

Response

200 OK

{
  "countries": [
    { "id": 1, "name": "England", "alpha3": "ENG" },
    { "id": 2, "name": "Spain", "alpha3": "ESP" }
  ]
}

403 Forbidden — missing or insufficient role

{ "error": "Unauthorized" }

500 Internal Server Error

{ "error": "Internal Server Error" }

Examples

All countries (default language)

GET /countries

All countries, Spanish names

GET /countries?language=es


Did this page help you?