# Get countries Returns a list of countries Endpoint: GET /countries Version: 2.0.7 Security: bearerAuth ## Query parameters: - `has_leagues` (boolean) Filter by countries which has available leagues Example: true ## Response 200 fields (application/json): - `status` (string) Example: "success" - `pagination` (object,null) Pagination info if applicable - `errors` (object,null) - `response` (array,null) - `response.id` (integer) The unique identifier for the country Example: 1 - `response.name` (string) The name of the country Example: "Italy" - `response.code` (string,null) The country ISO 3166-1 alpha-2 code, for regions the format will be custom Example: "IT" - `response.type` (string) Type of location, possible values (country, region) Example: "country" - `response.continent` (string,null) Continent name Example: "Europe" - `response.flag` (string,null) The URL to the country's flag image Example: "https://api.goalise.com/logos/countries/IT.svg" - `response.available_leagues` (integer) Number of available leagues from country Example: "4" ## Response 400 fields (application/json): - `status` (string) Example: "error" - `pagination` (object,null) - `errors` (array,null) - `errors.type` (string) Example: "validation_error" - `errors.data` (object) - `response` (object,null) ## Response 500 fields (application/json): - `status` (string) Example: "error" - `pagination` (object,null) - `errors` (array,null) - `errors.type` (string) Example: "validation_error" - `errors.data` (object) - `response` (object,null)