UKHSA-Internal / coronavirus-dashboard-api-python-sdk

Coronavirus (COVID-19) in the UK - API Service SDK for Python
https://coronavirus.data.gov.uk/
MIT License
67 stars 18 forks source link

Historical demographic data through the API #23

Open themonk911 opened 4 years ago

themonk911 commented 4 years ago

Hi,

We're (https://github.com/GoogleCloudPlatform/covid-19-open-data) are interested in the time series of Covid positive cases aggregated by age and sex. Using the following structure for the API, I'm only able to get the most recent day's data, even though no latestBy argument is provided.

'structure': '{"date":"date","areaName":"areaName","maleCases":"maleCases","femaleCases":"femaleCases"}'}

Additionally, the API errors out (with error 500) when using any filter on areaType, but works when using areaName as a filter e.g. areaName=England is a fine filter, but areaType=nations does not work.

I note that we don't currently need the intersectional data of age+sex which is what the above provides, having the demographics data separately is also fine.