Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginated API queries can be split for a particular date/area across multiple pages #39

Open
DaveJephson opened this issue Aug 2, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DaveJephson
Copy link

Some API v1 results can be split across pages. See this example:

https://api.coronavirus.data.gov.uk/v1/data?page=4&filters=areaType%3Dltla&structure=%7B%22date%22%3A%22date%22%2C%22areaName%22%3A%22areaName%22%2C%22areaType%22%3A%22areaType%22%2C%22areaCode%22%3A%22areaCode%22%2C%22cases%22%3A%22newCasesBySpecimenDate%22%2C%22deaths%22%3A%22newDeaths28DaysByDeathDate%22%2C%22pcrPercentage%22%3A%22uniqueCasePositivityBySpecimenDateRollingSum%22%7D

https://api.coronavirus.data.gov.uk/v1/data?page=5&filters=areaType%3Dltla&structure=%7B%22date%22%3A%22date%22%2C%22areaName%22%3A%22areaName%22%2C%22areaType%22%3A%22areaType%22%2C%22areaCode%22%3A%22areaCode%22%2C%22cases%22%3A%22newCasesBySpecimenDate%22%2C%22deaths%22%3A%22newDeaths28DaysByDeathDate%22%2C%22pcrPercentage%22%3A%22uniqueCasePositivityBySpecimenDateRollingSum%22%7D

The first link (page 4) has the last entry:
{​​​​​​​​​"date":"2021-06-04","areaName":"Cheshire West and Chester","areaType":"ltla","areaCode":"E06000050","cases":null,"deaths":0,"pcrPercentage":2.1}​​​​​​​​​

But the first entry for the second link (page 5) is:
{​​​​​​​​​"date":"2021-06-04","areaName":"Cheshire West and Chester","areaType":"ltla","areaCode":"E06000050","cases":52,"deaths":null,"pcrPercentage":null}​​​​​​​​​

So the same date and area, but the metrics are split across the pages, with nulls where they are not included.

@DaveJephson DaveJephson added the bug Something isn't working label Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants