Deprecated - API v1 will be switched off on 01.07.2022. Please upgrade to API v2
Countries
Country properties
Country is described by the following properties
Name | Type | Description |
---|---|---|
id |
long |
Unique identifier of country. |
symbol |
string |
Country symbol. |
name |
string |
Country name. |
nativeName |
string |
Country name in native language. |
List countries with given name
GET Geo/Countries
Returns paginated countries list.
Parameters
Name | Type | Description |
---|---|---|
name |
string |
Country name. Request returns countries with with name containing name parameter value. |
page |
int |
Page number, defaults to 1 . |
Example request
In this example we fetch list of all countries that name contains pol
string.
curl -i -X GET -H "Authorization: Bearer $ACCESS_TOKEN" http://yoursubdomain.perfectgym.com/Api/Geo/Countries?name=pol
Example response
Status: 200 OK
{
"elements": [
{
"id": 187,
"symbol": "PL",
"name": "Poland",
"nativeName": "Polska"
}
]
}