Space Apps Challenge Thessaloniki 2018

Draxis Weather API

General

The Draxis Weather API provides access to a 7-days forecast dataset with the following metrics:

  • Temperature (at 2m above the ground)
  • Relative Humidity (at 2m above the ground)
  • Precipitation
  • Wind speed (at 10m above the ground)
  • Atmospheric Pressure (at surface)
  • Solar Radiation (at surface)

All of the provided data except the precipitation come in an hourly frequency.

* Currently we support the Balkan Peninsula and the Iberian Peninsula.


API Key

In order to use the API you need an API key.
Here is a complimentary key for all the “Space Apps Challenge Thessaloniki” participants:

14805ba0-2134-4a38-b347-2f218613cc29

* The key will expire at 15/10/2018


Endpoint

http://api.draxis.gr/weather/meteo/data

Query parameters:

  • apikey – The API key
  • lat – Latitude
  • lon – Longitude
  • from_date, to_date – The desired date range in the form yyyy-mm-ddThh
  • variables (optional) – Limit the results to the selected variables
  • timezone (optional) – Change the timezone of the returned data (The default is the Etc/Utc)

 

Available variables:

  • temperature2m
  • rh2m
  • precipitation
  • windspeed10m
  • surfacepressure
  • surfacesolarradiation

 

Response example:

{
 "temperature2m": {
  "values": [
   22.1040625,
   22.0171875,
   21.6190625,
   20.9333125
  ],
  "dates": [
   "2018-09-19T00:00:00+0300",
   "2018-09-19T01:00:00+0300",
   "2018-09-19T02:00:00+0300",
   "2018-09-19T03:00:00+0300"
  ],
  "unit": "C",
  "description": "Temperature [C]"
 },
 "precipitation": {
  "values": [
   0,
   null,
   null,
   0
  ],
  "dates": [
   "2018-09-19T00:00:00+0300",
   "2018-09-19T01:00:00+0300",
   "2018-09-19T02:00:00+0300",
   "2018-09-19T03:00:00+0300"
  ],
  "unit": "kg/m^2",
  "description": "Total precipitation [kg/m^2]"
 }
}

Examples

Get all available data from 13/10/2018 12:00 to 15:00 at the specified location:

http://api.draxis.gr/weather/meteo/data?apikey=14805ba0-2134-4a38-b347-2f218613cc29&lat=40.6&lon=22.9&from_date=2018-10-13T12&to_date=2018-10-13T15

Get temperature for 14/10/2018 and 15/10/2018 at the specified location:

http://api.draxis.gr/weather/meteo/data?apikey=14805ba0-2134-4a38-b347-2f218613cc29&lat=40.6&lon=22.9&from_date=2018-10-14&to_date=2018-10-15&variables=temperature2m