UK 3-hourly site-specific forecast detailed documentation

Data feeds associated specifically with the 5,000 UK locations three hourly forecasts

The 5,000 UK locations three hourly forecasts capabilities feed

Description of data feed

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.

Accessing the feed via its web service

Description of web service

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.

Possible use cases for this web service with example URLs

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.

  1. You would like to know which timesteps are available for the three hourly forecast data feed in XML format. In this case you would set the resource category to wxfcs, the temporal resolution to 3hourly, and the data type to xml:

    Example: to obtain capabilities for the three hourly forecast data feed:

    http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/xml/capabilities?res=3hourly&key=<APIkey>

    The above example would return around 40 timesteps in XML format, resulting in a file size of approximately 1.5 kB
  2. You would like to know which timesteps are available for the three hourly forecast data feed in JSON format. In this case you would set the resource category to wxfcs and the temporal resolution to 3hourly, and the data type to json:

    Example: to obtain capabilities for the three hourly forecast data feed:

    http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/capabilities?res=3hourly&key=<APIkey>

    The above example would return around 40 timesteps in JSON format, resulting in a file size of approximately 1.6 kB

Example of XML and JSON responses

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.

XML

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>

<?xml version="1.0" encoding="ISO-8859-1" ?>
<Resource dataDate="2012-02-22T16:00:00Z" res="3hourly" type="wxfcs">
    <TimeSteps>
        <TS>2012-02-21T06:00:00Z</TS>
        <TS>2012-02-21T09:00:00Z</TS>
        <TS>2012-02-21T12:00:00Z</TS>
        <TS>2012-02-21T15:00:00Z</TS>
        <TS>2012-02-21T18:00:00Z</TS>
        <TS>2012-02-21T21:00:00Z</TS>
        <TS>2012-02-22T00:00:00Z</TS>
        <TS>2012-02-22T03:00:00Z</TS>
        <TS>2012-02-22T06:00:00Z</TS>
        <TS>2012-02-22T09:00:00Z</TS>
        <TS>2012-02-22T12:00:00Z</TS>
        <TS>2012-02-22T15:00:00Z</TS>
        <TS>2012-02-22T18:00:00Z</TS>
        <TS>2012-02-22T21:00:00Z</TS>
        <TS>2012-02-23T00:00:00Z</TS>
        <TS>2012-02-23T03:00:00Z</TS>
        <TS>2012-02-23T06:00:00Z</TS>
        <TS>2012-02-23T09:00:00Z</TS>
        <TS>2012-02-23T12:00:00Z</TS>
        <TS>2012-02-23T15:00:00Z</TS>
        <TS>2012-02-23T18:00:00Z</TS>
        <TS>2012-02-23T21:00:00Z</TS>
        <TS>2012-02-24T00:00:00Z</TS>
        <TS>2012-02-24T03:00:00Z</TS>
        <TS>2012-02-24T06:00:00Z</TS>
        <TS>2012-02-24T09:00:00Z</TS>
        <TS>2012-02-24T12:00:00Z</TS>
        <TS>2012-02-24T15:00:00Z</TS>
        <TS>2012-02-24T18:00:00Z</TS>
        <TS>2012-02-24T21:00:00Z</TS>
        <TS>2012-02-25T00:00:00Z</TS>
        <TS>2012-02-25T03:00:00Z</TS>
        <TS>2012-02-25T06:00:00Z</TS>
        <TS>2012-02-25T09:00:00Z</TS>
        <TS>2012-02-25T12:00:00Z</TS>
        <TS>2012-02-25T15:00:00Z</TS>
        <TS>2012-02-25T18:00:00Z</TS>
        <TS>2012-02-25T21:00:00Z</TS>
        <TS>2012-02-26T00:00:00Z</TS>
        <TS>2012-02-26T03:00:00Z</TS>
        <TS>2012-02-26T06:00:00Z</TS>
        <TS>2012-02-26T09:00:00Z</TS>
        <TS>2012-02-26T12:00:00Z</TS>
        <TS>2012-02-26T15:00:00Z</TS>
        <TS>2012-02-26T18:00:00Z</TS>
        <TS>2012-02-26T21:00:00Z</TS>
        <TS>2012-02-27T00:00:00Z</TS>
        <TS>2012-02-27T03:00:00Z</TS>
        <TS>2012-02-27T06:00:00Z</TS>
        <TS>2012-02-27T09:00:00Z</TS>
        <TS>2012-02-27T12:00:00Z</TS>
        <TS>2012-02-27T15:00:00Z</TS>
        <TS>2012-02-27T18:00:00Z</TS>
        <TS>2012-02-27T21:00:00Z</TS>
        <TS>2012-02-28T00:00:00Z</TS>
        <TS>2012-02-28T03:00:00Z</TS>
        <TS>2012-02-28T06:00:00Z</TS>
        <TS>2012-02-28T09:00:00Z</TS>
        <TS>2012-02-28T12:00:00Z</TS>
        <TS>2012-02-28T15:00:00Z</TS>
        <TS>2012-02-28T18:00:00Z</TS>
        <TS>2012-02-28T21:00:00Z</TS>
        <TS>2012-02-29T00:00:00Z</TS>
        <TS>2012-02-29T03:00:00Z</TS>
        <TS>2012-02-29T06:00:00Z</TS>
        <TS>2012-02-29T09:00:00Z</TS>
        <TS>2012-02-29T12:00:00Z</TS>
    </TimeSteps>
</Resource>
JSON

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>

{
    "Resource": {
        "dataDate": "2012-02-22T16:00:00Z",
        "res": "3hourly",
        "type": "wxfcs",
        "TimeSteps": {
            "TS": ["2012-02-21T06:00:00Z", "2012-02-21T09:00:00Z", "2012-02-21T12:00:00Z", "2012-02-21T15:00:00Z", "2012-02-21T18:00:00Z", "2012-02-21T21:00:00Z", "2012-02-22T00:00:00Z", "2012-02-22T03:00:00Z", "2012-02-22T06:00:00Z", "2012-02-22T09:00:00Z", "2012-02-22T12:00:00Z", "2012-02-22T15:00:00Z", "2012-02-22T18:00:00Z", "2012-02-22T21:00:00Z", "2012-02-23T00:00:00Z", "2012-02-23T03:00:00Z", "2012-02-23T06:00:00Z", "2012-02-23T09:00:00Z", "2012-02-23T12:00:00Z", "2012-02-23T15:00:00Z", "2012-02-23T18:00:00Z", "2012-02-23T21:00:00Z", "2012-02-24T00:00:00Z", "2012-02-24T03:00:00Z", "2012-02-24T06:00:00Z", "2012-02-24T09:00:00Z", "2012-02-24T12:00:00Z", "2012-02-24T15:00:00Z", "2012-02-24T18:00:00Z", "2012-02-24T21:00:00Z", "2012-02-25T00:00:00Z", "2012-02-25T03:00:00Z", "2012-02-25T06:00:00Z", "2012-02-25T09:00:00Z", "2012-02-25T12:00:00Z", "2012-02-25T15:00:00Z", "2012-02-25T18:00:00Z", "2012-02-25T21:00:00Z", "2012-02-26T00:00:00Z", "2012-02-26T03:00:00Z", "2012-02-26T06:00:00Z", "2012-02-26T09:00:00Z", "2012-02-26T12:00:00Z", "2012-02-26T15:00:00Z", "2012-02-26T18:00:00Z", "2012-02-26T21:00:00Z", "2012-02-27T00:00:00Z", "2012-02-27T03:00:00Z", "2012-02-27T06:00:00Z", "2012-02-27T09:00:00Z", "2012-02-27T12:00:00Z", "2012-02-27T15:00:00Z", "2012-02-27T18:00:00Z", "2012-02-27T21:00:00Z", "2012-02-28T00:00:00Z", "2012-02-28T03:00:00Z", "2012-02-28T06:00:00Z", "2012-02-28T09:00:00Z", "2012-02-28T12:00:00Z", "2012-02-28T15:00:00Z", "2012-02-28T18:00:00Z", "2012-02-28T21:00:00Z", "2012-02-29T00:00:00Z", "2012-02-29T03:00:00Z", "2012-02-29T06:00:00Z", "2012-02-29T09:00:00Z", "2012-02-29T12:00:00Z"]
        }
    }
}

Anatomy of responses

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:

Resource

A Resource object defines the current capabilities of the relevant web service, and contains the following attributes:

  • type: This corresponds to the resource type of the web service for which the capabilities have been returned
  • res: This refers to the temporal resolution of the web service for which the capabilities have been returned. This is set to the temporal resolution specified in the query
  • dataDate: This describes the date and time at which the data was last updated, expressed according to the ISO 8601 combined date and time convention

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.

  5,000 UK locations three hourly forecasts data feed

Accessing the feed via its web service

Description of web service

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.

Possible use cases for this web service with example URLs

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.

  1. You would like a complete list of the forecasts for a specified location at each available timestep. In this case you specify the location ID explicitly in the location field.

    Example: to obtain forecasts for a specified location at all available times in XML format:

    http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/xml/[LocationID]?res=3hourly&key=<API key>

    The above example would return around 40 forecast timesteps in XML format, resulting in a file size of approximately 4 kB
  2. You would like a complete list of the forecasts for every location in the UK at a particular time. In this case you specify the time explicitly in the query string, and set the location field in the URL to all.

    Example: to obtain forecasts for every location in the UK at a particular time in XML format:

    http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/xml/all?res=3hourly&time=2011-11-10T18Z&key=<API key>

    The above example would return around 5,000 forecast timesteps in XML format, resulting in a file size of approximately 1.4 MB
  3. You would like a complete list of the forecasts for every location in the UK at each available timestep. In this case the arguments specified are the same as those specified in the third use case for this web service, except that the time is not specified.

    Example: to obtain forecasts for every location in the UK at all available times in XML format:

    http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/xml/all?res=3hourly&key=<API key>

    The above example would return around 200,000 forecast timesteps in XML format, resulting in a file size of approximately 23 MB

Example of XML and JSON responses

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.

XML

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/3772?res=3hourly&key=<APIkey>

<?xml version="1.0" encoding="UTF-8"?>
<SiteRep>
	<Wx>
		<Param name="F" units="C">Feels Like Temperature</Param>
		<Param name="G" units="mph">Wind Gust</Param>
		<Param name="H" units="%">Screen Relative Humidity</Param>
		<Param name="T" units="C">Temperature</Param>
		<Param name="V" units="">Visibility</Param>
		<Param name="D" units="compass">Wind Direction</Param>
		<Param name="S" units="mph">Wind Speed</Param>
		<Param name="U" units="">Max UV Index</Param>
		<Param name="W" units="">Weather Type</Param>
		<Param name="Pp" units="%">Precipitation Probability</Param>
	</Wx>
	<DV dataDate="2013-11-26T13:00:00Z" type="Forecast">
		<Location i="3772" lat="51.479" lon="-0.449" name="HEATHROW"
			country="ENGLAND" continent="EUROPE" elevation="25.0">
			<Period type="Day" value="2013-11-26Z">
				<Rep D="W" F="1" G="7" H="84" Pp="0" S="2" T="2" V="MO" W="1" U="1">
					540</Rep>
				<Rep D="NW" F="4" G="9" H="74" Pp="0" S="7" T="6" V="GO" W="1"
					U="1">720</Rep>
				<Rep D="NW" F="4" G="11" H="70" Pp="1" S="7" T="6" V="MO" W="1"
					U="1">900</Rep>
				<Rep D="WNW" F="2" G="13" H="90" Pp="3" S="7" T="4" V="MO" W="7"
					U="0">1080</Rep>
				<Rep D="WNW" F="2" G="13" H="94" Pp="4" S="4" T="4" V="MO" W="7"
					U="0">1260</Rep>
			</Period>
			<Period type="Day" value="2013-11-27Z">
				<Rep D="W" F="2" G="11" H="95" Pp="11" S="4" T="4" V="MO" W="7"
					U="0">0</Rep>
				<Rep D="WNW" F="3" G="11" H="97" Pp="19" S="4" T="5" V="MO" W="7"
					U="0">180</Rep>
				<Rep D="W" F="4" G="9" H="98" Pp="83" S="4" T="5" V="PO" W="15"
					U="0">360</Rep>
				<Rep D="NW" F="6" G="11" H="98" Pp="14" S="4" T="7" V="MO" W="7"
					U="1">540</Rep>
				<Rep D="NW" F="8" G="11" H="95" Pp="8" S="7" T="9" V="MO" W="7"
					U="1">720</Rep>
				<Rep D="NW" F="8" G="11" H="96" Pp="6" S="7" T="9" V="MO" W="7"
					U="1">900</Rep>
				<Rep D="NW" F="7" G="9" H="96" Pp="5" S="4" T="8" V="MO" W="7"
					U="0">1080</Rep>
				<Rep D="NNW" F="7" G="9" H="97" Pp="4" S="4" T="8" V="MO" W="7"
					U="0">1260</Rep>
			</Period>
			<Period type="Day" value="2013-11-28Z">
				<Rep D="NW" F="6" G="7" H="98" Pp="5" S="4" T="7" V="MO" W="7"
					U="0">0</Rep>
				<Rep D="NNW" F="6" G="9" H="98" Pp="6" S="4" T="7" V="MO" W="7"
					U="0">180</Rep>
				<Rep D="NNW" F="6" G="7" H="98" Pp="5" S="4" T="7" V="MO" W="7"
					U="0">360</Rep>
				<Rep D="NNW" F="7" G="9" H="97" Pp="6" S="4" T="7" V="MO" W="7"
					U="1">540</Rep>
				<Rep D="NNW" F="8" G="9" H="95" Pp="9" S="7" T="9" V="GO" W="8"
					U="1">720</Rep>
				<Rep D="NNW" F="9" G="9" H="93" Pp="6" S="7" T="9" V="GO" W="7"
					U="1">900</Rep>
				<Rep D="NW" F="8" G="9" H="96" Pp="10" S="4" T="8" V="GO" W="8"
					U="0">1080</Rep>
				<Rep D="W" F="7" G="9" H="97" Pp="7" S="4" T="7" V="MO" W="7" U="0">
					1260</Rep>
			</Period>
			<Period type="Day" value="2013-11-29Z">
				<Rep D="WSW" F="6" G="9" H="97" Pp="9" S="4" T="7" V="MO" W="7"
					U="0">0</Rep>
				<Rep D="WSW" F="5" G="11" H="96" Pp="10" S="7" T="7" V="GO" W="8"
					U="0">180</Rep>
				<Rep D="WSW" F="5" G="16" H="94" Pp="9" S="9" T="7" V="GO" W="8"
					U="0">360</Rep>
				<Rep D="W" F="5" G="20" H="90" Pp="12" S="11" T="8" V="GO" W="8"
					U="1">540</Rep>
				<Rep D="W" F="6" G="25" H="83" Pp="9" S="13" T="9" V="GO" W="7"
					U="1">720</Rep>
				<Rep D="WNW" F="5" G="27" H="75" Pp="6" S="13" T="9" V="VG" W="3"
					U="1">900</Rep>
				<Rep D="WNW" F="3" G="25" H="74" Pp="5" S="11" T="7" V="VG" W="0"
					U="0">1080</Rep>
				<Rep D="WNW" F="1" G="22" H="76" Pp="5" S="11" T="5" V="VG" W="0"
					U="0">1260</Rep>
			</Period>
			<Period type="Day" value="2013-11-30Z">
				<Rep D="WNW" F="0" G="22" H="79" Pp="1" S="11" T="5" V="VG" W="0"
					U="0">0</Rep>
				<Rep D="NW" F="0" G="22" H="79" Pp="0" S="11" T="4" V="VG" W="0"
					U="0">180</Rep>
				<Rep D="NNW" F="-1" G="20" H="77" Pp="0" S="11" T="4" V="VG" W="0"
					U="0">360</Rep>
				<Rep D="NNW" F="1" G="22" H="73" Pp="0" S="11" T="5" V="VG" W="1"
					U="1">540</Rep>
				<Rep D="NNW" F="3" G="25" H="67" Pp="0" S="13" T="7" V="VG" W="1"
					U="1">720</Rep>
				<Rep D="NNW" F="3" G="22" H="72" Pp="1" S="11" T="7" V="VG" W="3"
					U="1">900</Rep>
				<Rep D="NNW" F="1" G="18" H="78" Pp="1" S="9" T="5" V="VG" W="2"
					U="0">1080</Rep>
				<Rep D="NW" F="1" G="16" H="83" Pp="2" S="9" T="4" V="GO" W="2"
					U="0">1260</Rep>
			</Period>
		</Location>
	</DV>
</SiteRep>
JSON

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/3772?res=3hourly&key=<APIkey>

{
    “SiteRep":{
        “Wx":{
            “Param":[{
                “name":"F","units":"C","$":"Feels Like Temperature"
            },
            {
                “name":"G","units":"mph","$":"Wind Gust"
            },
            {
                “name":"H","units":"%","$":"Screen Relative Humidity"
            },
            {
                “name":"T","units":"C","$":"Temperature"
            },
            {
                “name":"V","units":"","$":"Visibility"
            },
            {
                “name":"D","units":"compass","$":"Wind Direction"
            },
            {
                “name":"S","units":"mph","$":"Wind Speed"
            },
            {
                “name":"U","units":"","$":"Max UV Index"
            },
            {
                “name":"W","units":"","$":"Weather Type"
            },
            {
                “name":"Pp","units":"%","$":"Precipitation Probability"
            }
        ]
    },
    "DV":{
        “dataDate":"2013-11-26T13:00:00Z","type":"Forecast",
            "Location":{
                “i":"3772","lat":"51.479","lon":"-0.449","name":"HEATHROW","country":"ENGLAND","continent":"EUROPE","elevation":"25.0",
                 "Period":[{
                    “type":"Day","value":"2013-11-26Z",
                    "Rep":[{
                                “D":"NNW","F":"3","G":"18","H":"77","Pp":"8","S":"7","T":"5","V":"GO","W":"8","U":"0","$":"0"
                            },
                            {
                                “D":"NNW","F":"3","G":"16","H":"76","Pp":"8","S":"4","T":"5","V":"GO","W":"8","U":"0","$":"180"
                            },
                            {
                                “D":"NNW","F":"-1","G":"18","H":"87","Pp":"0","S":"4","T":"2","V":"GO","W":"0","U":"0","$":"360"
                            },
                            {
                                “D":"W","F":"1","G":"7","H":"84","Pp":"0","S":"2","T":"2","V":"MO","W":"1","U":"1","$":"540"
                            },
                            {
                                “D":"NW","F":"4","G":"9","H":"74","Pp":"0","S":"7","T":"6","V":"GO","W":"1","U":"1","$":"720"
                            },
                            {
                                “D":"NW","F":"4","G":"11","H":"70","Pp":"1","S":"7","T":"6","V":"MO","W":"1","U":"1","$":"900"
                            },
                            {
                                “D":"WNW","F":"2","G":"13","H":"90","Pp":"3","S":"7","T":"4","V":"MO","W":"7","U":"0","$":"1080"
                            },
                            {
                                “D":"WNW","F":"2","G":"13","H":"94","Pp":"4","S":"4","T":"4","V":"MO","W":"7","U":"0","$":"1260"
                            }
                        ]
                    },
                    {
                        “type":"Day","value":"2013-11-27Z","Rep":[{
                                “D":"W","F":"2","G":"11","H":"95","Pp":"11","S":"4","T":"4","V":"MO","W":"7","U":"0","$":"0"
                            },
                            {
                                “D":"WNW","F":"3","G":"11","H":"97","Pp":"19","S":"4","T":"5","V":"MO","W":"7","U":"0","$":"180"
                            },
                            {
                                “D":"W","F":"4","G":"9","H":"98","Pp":"83","S":"4","T":"5","V":"PO","W":"15","U":"0","$":"360"
                            },
                            {
                                “D":"NW","F":"6","G":"11","H":"98","Pp":"14","S":"4","T":"7","V":"MO","W":"7","U":"1","$":"540"
                            },
                            {
                                “D":"NW","F":"8","G":"11","H":"95","Pp":"8","S":"7","T":"9","V":"MO","W":"7","U":"1","$":"720"
                            },
                            {
                                “D":"NW","F":"8","G":"11","H":"96","Pp":"6","S":"7","T":"9","V":"MO","W":"7","U":"1","$":"900"
                            },
                            {
                                “D":"NW","F":"7","G":"9","H":"96","Pp":"5","S":"4","T":"8","V":"MO","W":"7","U":"0","$":"1080"
                           },
                           {
                                “D":"NNW","F":"7","G":"9","H":"97","Pp":"4","S":"4","T":"8","V":"MO","W":"7","U":"0","$":"1260"}]
                           },
                            {
“type":"Day","value":"2013-11-28Z","Rep":[{
                                “D":"NW","F":"6","G":"7","H":"98","Pp":"5","S":"4","T":"7","V":"MO","W":"7","U":"0","$":"0"
                           },
                           {
                                “D":"NNW","F":"6","G":"9","H":"98","Pp":"6","S":"4","T":"7","V":"MO","W":"7","U":"0","$":"180"
                           },
                           {
                                “D":"NNW","F":"6","G":"7","H":"98","Pp":"5","S":"4","T":"7","V":"MO","W":"7","U":"0","$":"360"
                           },
                           {
                                “D":"NNW","F":"7","G":"9","H":"97","Pp":"6","S":"4","T":"7","V":"MO","W":"7","U":"1","$":"540"
                           },
                           {
                                “D":"NNW","F":"8","G":"9","H":"95","Pp":"9","S":"7","T":"9","V":"GO","W":"8","U":"1","$":"720"
                           },
                           {
                                “D":"NNW","F":"9","G":"9","H":"93","Pp":"6","S":"7","T":"9","V":"GO","W":"7","U":"1","$":"900"
                           },
                           {
                                “D":"NW","F":"8","G":"9","H":"96","Pp":"10","S":"4","T":"8","V":"GO","W":"8","U":"0","$":"1080"
                           },
                            {
                                “D":"W","F":"7","G":"9","H":"97","Pp":"7","S":"4","T":"7","V":"MO","W":"7","U":"0","$":"1260"}]
                           },
                           {
                    “type":"Day","value":"2013-11-29Z","Rep":[{
                                “D":"WSW","F":"6","G":"9","H":"97","Pp":"9","S":"4","T":"7","V":"MO","W":"7","U":"0","$":"0"
                           },
                           {
                                “D":"WSW","F":"5","G":"11","H":"96","Pp":"10","S":"7","T":"7","V":"GO","W":"8","U":"0","$":"180"
                           },
                            {
                                “D":"WSW","F":"5","G":"16","H":"94","Pp":"9","S":"9","T":"7","V":"GO","W":"8","U":"0","$":"360"
                           },
                            {
                                “D":"W","F":"5","G":"20","H":"90","Pp":"12","S":"11","T":"8","V":"GO","W":"8","U":"1","$":"540"
                           },
                           {
                                “D":"W","F":"6","G":"25","H":"83","Pp":"9","S":"13","T":"9","V":"GO","W":"7","U":"1","$":"720"
                           },
                           {
                                “D":"WNW","F":"5","G":"27","H":"75","Pp":"6","S":"13","T":"9","V":"VG","W":"3","U":"1","$":"900"
                           },
                           {
                                “D":"WNW","F":"3","G":"25","H":"74","Pp":"5","S":"11","T":"7","V":"VG","W":"0","U":"0","$":"1080"
                            },
                            {
                                “D":"WNW","F":"1","G":"22","H":"76","Pp":"5","S":"11","T":"5","V":"VG","W":"0","U":"0","$":"1260"}]
                            },
                            {
                        “type":"Day","value":"2013-11-30Z","Rep":[{
                                “D":"WNW","F":"0","G":"22","H":"79","Pp":"1","S":"11","T":"5","V":"VG","W":"0","U":"0","$":"0"
                            },
                            {
                                “D":"NW","F":"0","G":"22","H":"79","Pp":"0","S":"11","T":"4","V":"VG","W":"0","U":"0","$":"180"
                            },
                            {
                                “D":"NNW","F":"-1","G":"20","H":"77","Pp":"0","S":"11","T":"4","V":"VG","W":"0","U":"0","$":"360"
                            },
                            {
                                “D":"NNW","F":"1","G":"22","H":"73","Pp":"0","S":"11","T":"5","V":"VG","W":"1","U":"1","$":"540"
                            },
                            {
                                “D":"NNW","F":"3","G":"25","H":"67","Pp":"0","S":"13","T":"7","V":"VG","W":"1","U":"1","$":"720"
                            },
                            {
                                “D":"NNW","F":"3","G":"22","H":"72","Pp":"1","S":"11","T":"7","V":"VG","W":"3","U":"1","$":"900"
                            },
                            {
                                “D":"NNW","F":"1","G":"18","H":"78","Pp":"1","S":"9","T":"5","V":"VG","W":"2","U":"0","$":"1080"
                            },
                            {
                                “D":"NW","F":"1","G":"16","H":"83","Pp":"2","S":"9","T":"4","V":"GO","W":"2","U":"0","$":"1260"
                            }
                        ]
                    }
                ]
            }
        }
    }
}

Anatomy of responses

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:

SiteRep

The SiteRep object comprises a single Wx object and a single DV object. Each of these objects is described below.

Wx

The Wx object comprises a number of Parm objects, defined below.

Param

A Param object contains the definition of one of the attributes in a single forecast (Rep) object, and contains the following attributes:

  • units:  This describes the unit in which the attribute value is represented.
  • name: This refers to the attribute name in the Rep object

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.

DV

The DV object contains the following attributes:

  • type:  This describes the type of data that the web service returns. For this web service the value is always Forecast
  • dataDate: This describes the date and time at which the forecast was run, expressed according to the ISO 8601 combined date and time convention

The value of the DV object comprises a set of Location objects, as described below.

Location

A Location object contains the following attributes:

  • continent: This describes the continent in which the location is located
  • country: This describes the country in which the location is situated
  • name: This provides the name of the location
  • lon: This provides the longitude of the location
  • lat: This provides the latitude of the location
  • i: This provides the ID of the location

The value of a Location object comprises a set of Period objects, as described below.

Period

A Period object contains the following attributes:

  • val: This describes the date of the day represented by the Period object in ISO 8601 format
  • type: This describes the type of period that the web service covers. For this web service the value is always 'Day'

The value of a Period object comprises a set of Rep objects, as described below.

Rep

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.

  • U: This gives the Maximum Uv Index
  • W: This gives the Weather Type
  • V: This gives the Visibility
  • T: This gives the Temperature
  • S: This gives the Wind Speed
  • Pp: This gives the Precipitation Probability
  • H: This gives the Screen Relative Humidity
  • G: This gives the Wind Gust
  • F: This gives the Feels Like Temperature
  • D: This gives the Wind Direction

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.

Last Updated: 20 June 2014

Your account

Our products

Related products

Support

Need more help? Visit our support pages