XML Examples

XML1 (Extensible Markup Language) is another well established tree representation commonly used in web development. It is both machine and human readable, and is often used to build web pages.

Time series for temperature, wind speed and precipitation:
https://api.meteomatics.com/2022-11-25T00:00:00Z--2022-11-28T06:00:00Z:PT1H/t_2m:C,wind_speed_10m:ms,precip_1h:mm/50.232,10.232/xml
Response:
<meteomatics-api-response version="3.0">
<user>user</user>
<dateGenerated>2021-09-20T09:59:51Z</dateGenerated>
<status>OK</status>
<data>
<parameter name="t_2m:C">
<location lat="50.232" lon="10.232">
<value date="2021-09-20T00:00:00Z">10.0</value>
<value date="2021-09-20T01:00:00Z">9.0</value>
<value date="2021-09-20T02:00:00Z">9.3</value>
<value date="2021-09-20T03:00:00Z">9.4</value>
<value date="2021-09-20T04:00:00Z">9.4</value>
<value date="2021-09-20T05:00:00Z">9.4</value>
<value date="2021-09-20T06:00:00Z">10.0</value>
</location>
</parameter>
<parameter name="wind_speed_10m:ms">
<location lat="50.232" lon="10.232">
<value date="2021-09-20T00:00:00Z">1.6</value>
<value date="2021-09-20T01:00:00Z">1.6</value>
<value date="2021-09-20T02:00:00Z">1.5</value>
<value date="2021-09-20T03:00:00Z">1.7</value>
<value date="2021-09-20T04:00:00Z">1.9</value>
<value date="2021-09-20T05:00:00Z">2.0</value>
<value date="2021-09-20T06:00:00Z">2.2</value>
</location>
</parameter>
<parameter name="precip_1h:mm">
<location lat="50.232" lon="10.232">
<value date="2021-09-20T00:00:00Z">0.00</value>
<value date="2021-09-20T01:00:00Z">0.00</value>
<value date="2021-09-20T02:00:00Z">0.00</value>
<value date="2021-09-20T03:00:00Z">0.00</value>
<value date="2021-09-20T04:00:00Z">0.00</value>
<value date="2021-09-20T05:00:00Z">0.00</value>
<value date="2021-09-20T06:00:00Z">0.00</value>
</location>
</parameter>
</data>
</meteomatics-api-response>

XML route query

Query different parameters along a route from Munich to Berlin with stops in Nuremberg and Leipzig:
https://api.meteomatics.com/2022-11-25T12ZPT6H:PT2H/t_2m:C,wind_speed_10m:ms,elevation:m/48.161112,11.566407+49.434025,11.079467+51.326582,12.378709+52.504482,13.383041/xml?route=true
Response:
<meteomatics-api-response version="3.0">
<user>met_user</user>
<dateGenerated>2021-09-20T05:40:00Z</dateGenerated>
<status>OK</status>
<data>
<location lat="48.161112" lon="11.566407" date="2021-09-20T12:00:00Z">
<parameter name="t_2m:C">15.0</parameter>
<parameter name="wind_speed_10m:ms">2.1</parameter>
<parameter name="elevation:m">520.0</parameter>
</location>
<location lat="49.434025" lon="11.079467" date="2021-09-20T14:00:00Z">
<parameter name="t_2m:C">15.8</parameter>
<parameter name="wind_speed_10m:ms">2.3</parameter>
<parameter name="elevation:m">318.0</parameter>
</location>
<location lat="51.326582" lon="12.378709" date="2021-09-20T16:00:00Z">
<parameter name="t_2m:C">13.5</parameter>
<parameter name="wind_speed_10m:ms">1.3</parameter>
<parameter name="elevation:m">121.0</parameter>
</location>
<location lat="52.504482" lon="13.383041" date="2021-09-20T18:00:00Z">
<parameter name="t_2m:C">11.9</parameter>
<parameter name="wind_speed_10m:ms">1.6</parameter>
<parameter name="elevation:m">37.0</parameter>
</location>
</data>
</meteomatics-api-response>

Footnotes

Extensible Markup Language: http://www.w3.org/TR/REC-xml/