Just had a quick play around with the Generic API that powers the gov’t Covid dashboard among other things. (that may use the alternate endpoint(s), but appears to be the same data)
There are some issues with the OpenAPI spec not lining up with the API, but I’ve just plumbed in the region type and region code (yes, you need both) for Mendip and picked out a few interesting metric types.
See: Available Metrics for Mendip
A few possibly useful metrics for quick lookups on current local conditions/direction of change:
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesBySpecimenDate?date=2021-11-04
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesBySpecimenDateAgeDemographics?date=2021-10-25
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesBySpecimenDateChange?date=2021-10-25
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesBySpecimenDateChangePercentage?date=2021-10-25
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesBySpecimenDateDirection?date=2021-10-25
- https://api.coronavirus.data.gov.uk/generic/soa/ltla/E07000187/newCasesPCROnlyBySpecimenDate?date=2021-10-31
Most metrics lag behind in terms of availability of data, hence some of the dates in the example URIs above are older.
If there’s no data available for a given region/date, the endpoints return a 204-no content response code.