Coronavirus (COVID-19) in the UK - API Service¶
Software Development Kit for Python¶
This website provides documentations and examples for the Python SDK library entitled
uk-covid19
, as published by Public Health England on Coronavirus (COVID-19) in the UK.
Similar libraries are also available for JavaScript, R, .Net, and Elixir.
The API¶
The API supplies the latest data for the COVID-19 outbreak in the United Kingdom. The endpoint for the data provided using this SDK is:
https://api.coronavirus.data.gov.uk/v1/data
See the Developers Guide for additional information on the API and see a list of latest metrics.
Pagination¶
The API responses are restricted to 1000 records per request. If you need more records,
you will need to use the page
query parameter to enable pagination.
As a bonus, the SDKs come with a built-in mechanism to bypass pagination restrictions in
the API and produce the entire data for a given combination of filters
and
structure
in one go.
When accessing the API through one of the SDKs, you will always download the entire
dataset unless the latest_by
argument is defined.
Table of Contents
Developed and maintained by Public Health England.
Copyright (c) 2020, Public Health England.