BBC News Labs Documentation

Documentation for BBC News Labs APIs & #newsHACK events

Weather API: 3-hourly forecast

Description

The 3 hourly JSON Forecast feed provides forecast data for 3 hourly time intervals for the next 24 hours.

Table of properties and values

The following properties are included in the JSON:

general properties

locationId

the geoId, as stored in Locator

locationName

name of the place, as stored in Locator

country

containing country, as stored in Locator

latitude

floating point to 3 decimal places

longitude

floating point to 3 decimal places

forecast

every 3 hours for the next 24 hours

timezoneName

eg UTC + 01

date

in ISO 8601 format

maxTemperature centigrade

maximum day temperature in C, e.g. 14

maxTemperature fahrenheit

maximum day temperature in F, e.g. 57

visibility

e.g. "Good"

wind direction

e.g. "SW"

wind direction desc

e.g. "South Westerly"

windspeed mph

e.g. 15

windspeed kph

e.g. 24

iconGrey

URL of the Grey version of the wind rose

iconWhite

URL of the Grey version of the wind rose

weatherType

Met Office description, e.g. "Sunny intervals"

weatherCode

Met Office descriptive code

dayName

e.g. "Thursday"

dayNameAbbreviation

e.g. "Thu"

weatherSymbol mobile

URL of the relevant daytime weather icon image, smallest size

weatherSymbol webSmall

URL of the relevant daytime weather icon image, larger size

weatherSymbol webMedium

URL of the relevant daytime weather icon image, largest size

humidityPercent

e.g. 80

pressureMillibars

e.g. 1017

timeSlot

eg "13:00" (time that should be displayed)

Example URL

http://weather-api-proxy.cloud.bbc.co.uk/weather/feeds/en/2655981/3hourlyforecast.json


Questions and Feedback

All comments are moderated for approval.