water

Zugriff auf eine Timeseries

Changed on

Liefert den aktuellen Wert der Station (Pegel). Kann auch als Unterressource von Timeseries angefordert werden.

get/stations/{station}/{timeseries}.json

Request

  • Base URL
    https://www.pegelonline.wsv.de/webservices/rest-api/v2
  • URL
    https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/{station}/{timeseries}.json
  • Auth
    none declared

Path parameters

stationstring required

UUID / Name / Pegelnummer der Station.

timeseriesstring required

timeseries shortname

Query parameters

includeCurrentMeasurementboolean

Aktuell gemessener Wert

includeCharacteristicValuesboolean

kennzeichnende Wasserstände

Response

OK

shortnamestring

Kurzbezeichnung

longnamestring

Langbezeichnung

unitstring

Maßeinheit

equidistancenumber float

Abstand der Messwerte in Minuten.

characteristicValuesCharacteristicValues[]

Example response

{
  "shortname": "W",
  "longname": "WASSERSTAND ROHDATEN",
  "unit": "cm",
  "equidistance": 15,
  "currentMeasurement": {
    "timestamp": "2022-03-02T10:30:00+01:00",
    "value": 323,
    "trend": -1,
    "stateMnwMhw": "normal",
    "stateNswHsw": "unknown"
  },
  "gaugeZero": {
    "unit": "m. ü. NN",
    "value": 8,
    "validFrom": "1985-03-13"
  }
}

Changes

    • warning

      removed the optional property from the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      the response's body type changed from array to object for status

    • info

      added the new optional query request parameter includeCharacteristicValues

    • info

      added the new optional query request parameter includeCurrentMeasurement

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status