Location

Returns city details

Returns a City details with given id.

get/core/latest/cities/{city-id}

Request

  • Base URL: https://api.klara.ch
  • URL: https://api.klara.ch/core/latest/cities/{city-id}
  • Auth: one of:
    • API key in header X-API-KEY
    • HTTP bearer

Path parameters

city-idstring required
Example:1

City id

Response

Found city

idinteger

The id of this City object

zipCodestring

The postal code for this city

basicPostcodestring
namestring

Name of this City

cityName27string

Example response

{
  "id": 1,
  "zipCode": "8034",
  "name": "Gerlafingen",
  "state": {
    "code": "VD",
    "description": "Vaud"
  },
  "community": {
    "bfsNumber": 5480,
    "communityName": "Daillens",
    "conurbationNumber": "5586",
    "state": {
      "code": "VD",
      "description": "Vaud"
    }
  },
  "country": {
    "countryName": "Schweiz",
    "iso2Code": "CH",
    "iso3Code": "CHE",
    "phoneCode": "+41",
    "numericCode": "756"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.