CSV Examples

CSV1 is a textfile delimited by a comma or semicolon in order to separate values. Time series as well as gridded data can be queried in CSV format from the Meteomatics API.

Temperature and relative humidity time series
Query: https://api.meteomatics.com/2024-04-24T00:00:00Z----2024-04-27T00:00:00Z:PT3H/t_2m:C,relative_humidity_2m:p/47.423336,9.377225/csv
Reply:
validdate;t_2m:C;relative_humidity_2m:p
2016-01-20T13:35:00Z;-0.829;99.2
2016-01-20T16:35:00Z;-1.574;99.3
2016-01-20T19:35:00Z;-2.167;99
2016-01-20T22:35:00Z;-2.367;98.6
2016-01-21T01:35:00Z;-3.162;95.5
2016-01-21T04:35:00Z;-3.893;75.1
2016-01-21T07:35:00Z;-4.625;79.3
2016-01-21T10:35:00Z;-5.357;100
2016-01-21T13:35:00Z;-6.088;100
Temperature geographical region
Query: https://api.meteomatics.com/2024-04-24T12:00:00Z/t_2m:C/90,-180_-90,180:10x10/csv
Please note that when querying a grid, the first column in the reply corresponds to the latitudes, the first row after the header corresponds to the longitudes.
Reply:
validdate;2016-12-19 12:00:00
parameter;t_2m:C
data;-180;-140;-100;-60;-20;20;60;100;140;180
90;-15.286;-15.286;-15.286;-15.286;-15.286;-15.286;-15.286;-15.286;-15.286;-15.286
70;-8.161;-16.942;-24.255;-16.692;-0.567;7.3;-22.192;-38.973;-22.411;-8.036
50;2.8;7.1;-6.098;-9.755;9;0.963;-9.348;-15.13;-19.973;2.8
30;20.7;18.8;-5.755;22.1;18.2;16.6;12.5;-3.848;18.2;20.7
10;26.4;26;26.8;27.4;26.7;34.8;26.7;27.8;27.2;26.4
-10;27.1;27;22.5;22.7;24.6;27.4;27.3;27.2;27.9;27.4
-30;21.7;21.9;20.1;22.8;19.7;34.2;22.9;18.7;25.2;21.6
-50;9.7;9.3;8.1;12.2;4.1;1.7;3.7;7.9;8.8;9.7
-70;-1.505;-0.348;-3.13;0.308;-2.036;-2.411;-18.348;-16.411;-25.317;-1.473
-90;-25.63;-25.63;-25.63;-25.63;-25.63;-25.63;-25.63;-25.63;-25.63;-25.63

CSV route query

The following query provides the temperature and precipitation along a route from St. Gallen (ZIP code 9000) via Zurich (ZIP code 8000) to Basel (ZIP code 4000), when you start today at 0 UTC, arrive in Zurich at 1 UTC and arrive in Basel at 2 UTC from:
Query: https://api.meteomatics.com/2024-04-24T00:00:00Z,2024-04-24T01:00:00Z,2024-04-24T02:00:00Z/t_2m:C,precip_1h:mm/postal_CH9000+postal_CH8000+postal_CH4000/csv?route=true
Response:
station_id;validdate;t_2m:C;precip_1h:mm
postal_CH9000;2018-10-23T15:47:46Z;10.9;0.02
postal_CH8000;2018-10-23T16:47:46Z;12.5;0.00
postal_CH4000;2018-10-23T17:47:46Z;13.0;0.00

Footnotes

Comma Separated Value: http://en.wikipedia.org/wiki/Comma-separated_values