This page contains detailed documentation on each of the data feeds associated specifically with the 5,000 UK locations three hourly forecasts
Here we provide detailed descriptions of the following feeds:
The capabilities data feed provides a summary of the timesteps for which results are available for the 5,000 UK locations three hourly forecast data feed. You can use this data feed to check that the timestep you are interested in is available before querying the relevant web service, or calling the relevant JavaScript API method, to get the data. In this way you can minimise the number of redundant calls that have to be made.
The capabilities web service returns the output of the capabilities data feed in either XML or JSON format. It is recommended that you query the capabilities web service to check whether the forecasts have been updated when querying for new data from the 5,000 UK locations three hourly forecast web service rather than calling the 5,000 UK locations three hourly forecast web service repeatedly, as this reduces the amount of data that has to be transferred, enhancing the user experience.
The 5,000 UK locations three hourly forecast capabilities web service is used to check which timesteps are currently available from the 5,000 UK locations three hourly forecast data feed. You should set the data format in the URL to specify whether the web service should return XML or JSON, and include your API key in the query string.
The following examples show a typical result of a call to the capabilities web service requesting a complete list of timesteps available from the 5,000 UK locations three hourly forecast web service.
The XML that follows is a representative response to a call to the following URL, with a valid key:
http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/xml/capabilities?res=3hourly&key=<APIkey>
The JSON that follows shows the structure of a representative response to a call to the following URL, with a valid key:
http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/capabilities?res=3hourly&key=<APIkey>
The XML and JSON responses produced by this web service are identical in terms of their high level structure and the information they represent. Each contains a single Resource object (or node in XML), defined as follows:
A Resource object defines the current capabilities of the relevant web service, and contains the following attributes:
The value of the Resource object comprises a single TimeSteps object, which in turn contains a set of TS objects. The value of each TS object (or each element in the TS array in the JSON representation) provides a description of a single available timestep, expressed according to the ISO 8601 combined date and time convention.
This provides access to three hourly forecast data from the Met Office for each of the roughly 5,000 sites for which the Met Office provides data. The forecast data is provided for time steps that are three hours apart, starting with the time at which the forecast was last run, and ending approximately five days later (meaning that approximately 40 forecast timesteps are available for each site). The data provided by the web service is updated on an hourly basis, and at any given point in time the exact set of timesteps that are available can be obtained using the capabilities web service. For a full list of the 5,000 sites, call the 5,000 UK locations site list data feed.
Since this web service supplies forecast data, whenever this web service is used the resource category field in the URL should be set to wxfcs, and, as is the case for all web services, you should also set the data format in the URL to specify whether the web service should return XML or JSON, and include your API key in the query string.
The following examples show a typical result of a call to the 5,000 UK locations three hourly forecast web service requesting a complete list of the forecasts for Heathrow at each available timestep. The following section provides a detailed description of the structure and content of the responses.
The XML that follows is a representative response to a call to the following URL, with a valid key:
http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/3772?res=3hourly&key=<APIkey>
The JSON that follows shows the structure of a representative response to a call to the following URL, with a valid key:
http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/capabilities?res=3hourly&key=<APIkey>
The XML and JSON responses produced by this web service are identical in terms of their high level structure and the information they represent. Each contains a single SiteRep object (or node in XML), defined as follows:
The SiteRep object comprises a single Wx object and a single DV object. Each of these objects is described below.
The Wx object comprises a number of Parm objects, defined below.
A Param object contains the definition of one of the attributes in a single forecast (Rep) object, and contains the following attributes:
The value of the Param object($ in the JSON representation) provides a textual description of what the corresponding attribute represents in the corresponding Rep object.
The DV object contains the following attributes:
The value of the DV object comprises a set of Location objects, as described below.
A Location object contains the following attributes:
The value of a Location object comprises a set of Period objects, as described below.
A Period object contains the following attributes:
The value of a Period object comprises a set of Rep objects, as described below.
A Rep object contains a single forecast, and contains the elements listed in the table below. The units for each of these elements are described in Unit definitions.
The value of a Rep object ($ in the JSON representation) denotes the number of minutes after midnight GMT on the day represented by the Period object in which the Rep object is found.
A guide to choosing the right product
If you want to use our data you will need an API key
Last updated 10:00 on 17 May 2013
Log out of Met Office DataPoint