Skip to main content

NHS APIs Coronavirus (COVID-19)

This API has been set up to allow easy access for third parties to consume the latest coronavirus content.

This API is accessed through HTTP and returns data in a JSON format.

Base URL

All requests to this API should start with the following base URL:

https://api.nhs.uk/conditions/coronavirus-covid-19

Authentication and Headers

Your request must include a subscription-key header with a valid subscription key.

Header key Header value
subscription‑key

Login or register to get an API key to use this API

Endpoints

An endpoint is added to the base URL to create the full request URL. Some APIs have more than 1 type of endpoint you can use.

Page

Endpoint

GET /

Parameters

Name Type Required Allowed Default Description
url
query
string true This is to identify who is using this API to help us monitor accuracy of use. Please enter your website URL or application name/URL.

Responses

200 -

Test this endpoint

Try this API in our developer console.

Try it

Child page

Endpoint

GET /*

Responses

200 -

Test this endpoint

Try this API in our developer console.

Try it

FAQs

List of voice friendly common questions for this condition.

Endpoint

GET /faqs

Responses

200 -

Test this endpoint

Try this API in our developer console.

Try it

Attribution

Any syndicated content must incorporate the following attribution (credit) to the NHS website:

Content supplied by the NHS website logo

The logo should be clearly visible and in line with the associated content on every web page that contains the syndicated content. You should also link this logo to the relevant page on the NHS website that the content has been supplied from. This URL is supplied as part of the feed under author:

"author": {
  "url": "https://www.nhs.uk",
  "logo": "https://www.nhs.uk/nhscwebservices/documents/logo1.jpg",
  "email": "nhswebsite.servicedesk@nhs.net",
  "@type": "Organization",
  "name": "NHS website"
}

If you are displaying NHS syndicated content in a context where a functional link back to the article on the NHS website is not possible then you should use the following attribution (credit):

From www.nhs.uk

Caching

Caching all content supplied through our API is recommended where possible. Unless otherwise notified by the syndication team, you should refresh cached content at least once every 7 days. If instructed to refresh cached our content, you must do so immediately.

Certain topics on the NHS website need to be refreshed more frequently than every 7 days. Find out about content not covered by our standard terms and conditions.

Usage caps

When using a trial subscription, you will only be able to run 10 calls/minute up to a maximum of 1,000 calls per month. A full subscription caps usage at 4,000 calls per hour. You are not to call the APIs over 4,000 times in any one-hour period, unless you have notified the syndication team in advance and they have confirmed in writing that you can do so.

Standard licence terms

By using an NHS website API, you agree to our standard licence terms (PDF, 189KB).

Your contact details

You must provide accurate contact details that must be kept up to date while you are using our content. Failure to keep contact details updated is a breach of our licence terms and may result in your subscription being disabled. You can check your details on your profile.

Help and support

If you need help using any of our APIs , please email the NHS website service desk at nhswebsite.servicedesk@nhs.net.