Met Office NSWWS Public API

Introduction

Met Office Logo

The National Severe Weather Warnings Service (NSWWS) is a UK public service to help emergency responders and the public prepare for possible disruption caused by storms or other severe weather. For more information, see the guide to the National Severe Weather Warnings Service.

This API supplies the latest information about weather warnings in a machine-readable format. It uses the Atom Syndication Format, an IETF standard. The Atom Feed is updated whenever there is a change to the list of latest warnings, that is whenever a warning is issued, updated, cancelled, or expires. If you need regular updates for NSWWS warnings that have been issued by forecasters, then this API should make it simple to access the correct information.

To make the best use of this API, the Atom Feed needs to be regularly polled for changes. When a change is detected, your application can use the feed content to get the latest information as it needs. The Atom Feed should be considered the source of truth for the latest warnings that are currently available.

To be able to follow Met Office standards, you might find this NSWWS style guide useful.

Getting started - authentication key and Atom Feed URL

You will need an API key to authenticate all of your requests to the API. This API key should be added to the request headers under the header x-api-key. To obtain an API key, you need to get signed up by filling in this contact form and requesting access to the NSWWS Public API. With your API key you will also be given information about how frequently you can call the API.

You will also be given the URL for the Atom Feed when you get the API key. This is the entry point to the API, so you will need this endpoint to poll. All further links you might need are supplied in the atom-feed content at this URL.

Note: Endpoints for issued and updated warnings should always be considered transient. You should not rely on them to exist unless you first check that they still exist in the Atom Feed.

Click here for instructions on how to use the API.