covid-tracking-api icon indicating copy to clipboard operation
covid-tracking-api copied to clipboard

Request: Meta-Data Endpoint

Open joshuaellinger opened this issue 4 years ago • 1 comments

Can you create a meta-data endpoint that updates when data gets published?

Example: https://covidtracking.com/api/states/meta-data would something like return { "data-through": "2020-04-03", "last-updated": "2020-04-04T14:02:01-05" }

I need it for QC. Otherwise I don't have a way to tell the date for the current data without fetching the history.

joshuaellinger avatar Apr 04 '20 19:04 joshuaellinger

I was looking for something similar. I wonder if we could use the "lastModified" property in "US Current Values" (/api/us) for this. In other words, does a change in the data retrieved from the /api/us endpoint mean that the data retrieved from the /api/states endpoint must have already changed?

benjamingreenberg avatar Apr 07 '20 22:04 benjamingreenberg