As a bit of an experiment, the coronavirus data that I have gathered is now available via a very simple API. This API is free with no sign-up, but if you find it useful, please reach out to coronavirus@jgaxn.com and let me know how you’re using it and how I can improve it for you.

Limitations of the data

  • I started collecting data for the number of cases by county starting with 2020-03-19. I have no data for any dates before then.
  • The state of Utah started releasing hospitalization data on 2020-04-02. I have no hospitalization data before then.
  • The state of Utah started releasing county by county death data on 2020-04-16. I have no death data before then.
  • If you have access to any data I do not have available, please reach out at coronavirus@jgaxn.com and I will add it to the API and make it available to all.

Get data for a certain date

GET https://jgaxn/coronavirus/api/v1/YYYY-MM-DD.json

If I have no data for a given date, expect to receive a response with a 404 status code.

Example: GET https://jgaxn/coronavirus/api/v1/2020-07-07.json

{
  "Bear River": {
    "cases": 1658,
    "hospitalizations": 63,
    "deaths": 3
  },
  "Central Utah": {
    "cases": 227,
    "hospitalizations": 13,
    "deaths": 0
  },
  "Davis County": {
    "cases": 1522,
    "hospitalizations": 95,
    "deaths": 6
  },
  "Salt Lake County": {
    "cases": 12994,
    "hospitalizations": 894,
    "deaths": 120
  },
  "San Juan": {
    "cases": 417,
    "hospitalizations": 60,
    "deaths": 9
  },
  "Southeast Utah": {
    "cases": 41,
    "hospitalizations": 0,
    "deaths": 0
  },
  "Southwest Utah": {
    "cases": 1805,
    "hospitalizations": 111,
    "deaths": 13
  },
  "Summit County": {
    "cases": 538,
    "hospitalizations": 47,
    "deaths": 1
  },
  "Tooele County": {
    "cases": 294,
    "hospitalizations": 12,
    "deaths": 0
  },
  "TriCounty": {
    "cases": 56,
    "hospitalizations": 4,
    "deaths": 0
  },
  "Utah County": {
    "cases": 4761,
    "hospitalizations": 244,
    "deaths": 24
  },
  "Wasatch County": {
    "cases": 427,
    "hospitalizations": 20,
    "deaths": 4
  },
  "Weber-Morgan": {
    "cases": 1293,
    "hospitalizations": 90,
    "deaths": 14
  },
  "State Total": {
    "cases": 26033,
    "hospitalizations": 1653,
    "deaths": 194
  }
}