This page contains detailed documentation on each of the data feeds associated specifically with national park forecasts.
Here we provide detailed descriptions of the following feeds:
The national park forecast capabilities data feed provides a summary of the results that are available from the national park forecasts data feed, specifying the national parks for which data are available, and the time when the forecasts were issued.
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 national park forecasts web service rather than calling the national park forecasts web service repeatedly, as this reduces the amount of data that has to be transferred, enhancing the user experience.
Since the capabilities web service concerns forecast scripts, whenever this web service is used the data category field in the URL should be set to txt, the resource category field 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 national park forecast capabilities 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/txt/wxfcs/nationalpark/xml/capabilities?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/txt/wxfcs/nationalpark/json/capabilities?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 NationalParkForecasts object (or node in XML), defined as follows:
The NationalParkForecasts object comprises a number of NationalParkForecast objects, defined below.
A NationalParkForecast object defines a single national park forecast, and contains the following attributes:
The national park forecast site list data feed provides a list of the locations (also known as sites) for which results are available for the national park forecast data feed. You can use this data feed to find details such as the ID of the site that you are interested in finding data for.
The national park forecast site list web service is used to check which locations the national park forecast data feed provides data for. 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.
When using the national park forecast data feed, you should set the data format in the URL to specify that the web service should return XML or JSON as required, and include your API key in the query string.
The following examples show a typical result of a call to the national park forecast site list web service requesting a complete list of sites for which national park forecasts are available.
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/txt/wxfcs/nationalpark/sitelist?key=<API key>
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/txt/wxfcs/nationalpark/sitelist?key=<API key>
The response produced by this web service contains a single Locations element, which in turn contains a set of Location elements, defined as follows:
A Location element defines a single site, and contains the following attributes:
This provides access to national park forecasts. The data provided by the web service is generally updated twice daily, early morning and early afternoon. For a full list of the sites, call the national park forecasts site list data feed [in page HL to anchor - to do].
Since this web service supplies script forecast data, whenever this web service is used the data category field in the URL should be set to txt, and resource category should be set to wxfcs. 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 national park forecasts web service requesting the national park forecast for Cairngorms National Park. 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/txt/wxfcs/nationalpark/xml/600?key=<API key>
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/txt/wxfcs/nationalpark/json/600?key=<API key>
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 NationalParkForecasts object (or node in XML), defined as follows:
The NationalParkForecasts object comprises a number of NationalParkForecast objects, defined below.
A NationalParkForecast object defines a single national park forecast, and contains the following attributes:
It also contains a single Section object.
A NationalParkForecast object defines a single national park forecast. It contains a type attribute, which specifies the period of time covered by the forecast. It also contains the following elements:
Title: This gives the title of the forecast
para: This describes the content of the forecast
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