GET /utils/cities
Returns the list of available cities for a given country.
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
countryIso2 |
String | ✔ | ISO2 code of the country (required) |
Response 200
| Field | Type | Description |
|---|---|---|
cities |
String[] | List of available cities |
Example
{
"cities": [
"Milano",
"Roma",
"Palermo"
]
}
Example curl call
curl -X GET "/utils/cities?countryIso2=IT" \
-H "x-api-key: <API_KEY>"
Other codes
400
countryIso2 missing or invalid