Your First Query
After you received your username and password you can start using the Weather API.
Just click here or copy this link to your favourite web browser to get the temperature on Mont Blanc last midnight.
How Does It Work?
The URL has the following structure:
Looking at the example from above:
- now – date (today)
- t_2m:C – parameter with units (temperature at two meters in degree Celsius)
- 45.842875,6.863229 – latitude, longitude (Coordinates of Mont Blanc)
- csv – output format
The result is a csv file containing the queried data:
Let’s Add More Parameters
For more than one parameter type them separated by commas:
- t_2m:C – temperature at two meters in degree Celsius
- precip_1h:mm – precipitation during the last hour in mm
- total_cloud_cover:p – total cloud cover in percent
Get Parameters On a Grid
Interested in a larger area? No problem, just change the coordinates!
- 50,10 – latitude max, longitude min (upper left corner of the area)
- 40,20 – latitude min, longitude max (lower right corner of the area)
- 100×100 – resolution (grid 100×100)
Use a Time Interval
Let’s get the temperature for a ten day interval with temporal increments of one day:
- todayT00:00:00Z – start date (today at midnight)
- P10D – time interval (10 days)
- P1D – time step (1 day)
csv with your favourite format:
- json – json format
Feel free to play around with our URL creator to get a feeling for the URL construction.
First, decide what format you prefer. Then choose the start date, the length of the interval and the steps, where m = minute, h = hour, D = day, M = month and Y = year. Next choose the parameter. If you want more than one parameter, you can add up to three more parameters by clicking on the plus sign. The coordinates can either be single points, point lists or rectangles, depending on the format you chose. The last step is to decide which model you choose.
The URL-link will then be shown. Just click on the link or copy it to your web browser to retrieve the data.
Point list: 50,10+40,20
Rectangle (fixed number of points): 50,10_40,20:11×11
You can get a subscription for the Meteomatics Weather API at the shop or by directly contacting us.
Phone (Switzerland): +41 (0) 71 272 66 50
Phone (Germany): +49 (0) 30 200 74 280
Phone (France): +33 (0) 7 89 57 22 32
Please use the support form to contact us: Meteomatics API Support Form.