METAR XML Output Data Format

  • The METAR XML output has an XML schema .

  • METAR fields are returned in the same order, indicated by the METAR Field Description.
    The XML element names are in lower-case, with words separated by an underscore (_). The units of the field are reflected in the element name. For instance, the element cloud_base_ft_agl indicates that for the cloudBase field, the height of the cloud base is represented in feet (above ground level).

  • The output includes some statistics about the request, such as the number of results and the time taken to fulfill the request.

  • All data is ordered by descending observation time, except in cases where a flight path constraint is used. For flight path queries, data is ordered by distance along the flight path from origin to destination

  • An error message is generated when an error in the input request prevents the retrieval of data.

  • If a constraint parameter is missing and a default value exists, an appropriate warning message is produced and the default request is fulfilled.

  • For a description of the METAR field names, their units and types, please refer to: METAR Field Description

An example of XML output is below:

All METARS collected within the past 4 hours for PHTO

Page loaded:  12:55 UTC  |   05:55 AM Pacific  |   06:55 AM Mountain  |   07:55 AM Central  |   08:55 AM Eastern