Countries
Returns a list of all countries.
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
language | string | No | en | Language 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
Updated about 2 months ago
Did this page help you?