Skip to content
JK edited this page Sep 5, 2019 · 9 revisions

Requests

Base request

Request to get meta data from the server:
GET /
The answer is a json document containing the meta data.
meta.json

City request

Request to get data about a specific city:
GET /<city_id>/
The answer is a json document containing the city data.
city.json

Timespan request

The timespan request is available in two versions:

  • Version 1 is used by default but does only provide forecast data.
  • Version 1.1 is used when version=1.1 is added to the URL and provides forecast and historic data. Due to backwards compatibility version 1 uses a different format.

Version 1

Request: GET /<city_id>/<lot_id>/timespan?from=yyyy-mm-ddThh:MM:ss&to=yyyy-mm-ddThh:MM:ss, from and to must be in the UTC timezone.

Answer: timespan.json

Version 1.1

Request: GET /<city_id>/<lot_id>/timespan?from=yyyy-mm-ddThh:MM:ss&to=yyyy-mm-ddThh:MM:ss&version=1.1, from and to must be in the UTC timezone.

Answer: timespan1_1.json

Clone this wiki locally