Skip to content

Latest commit

 

History

History
184 lines (160 loc) · 5.5 KB

File metadata and controls

184 lines (160 loc) · 5.5 KB

Chainlink External Adapter for COVID Tracker

1.4.25 v2

Notice: The COVID Tracking Project is ending all data collection on March 7, 2021. The existing API will continue to work until May 2021, but will only include data up to March 7, 2021.

Base URL https://api.covidtracking.com/v1

This document was generated automatically. Please see README Generator for more info.

Environment Variables

There are no environment variables for this adapter.


Data Provider Rate Limits

There are no rate limits for this adapter.


Input Parameters

Every EA supports base input parameters from this list

Required? Name Description Type Options Default
endpoint The endpoint to use string us us

Us Endpoint

us is the only supported name for this endpoint.

Input Params

Required? Name Aliases Description Type Options Default Depends On Not Valid With
date The date to query formatted by [YEAR][MONTH][DAY] (e.g. 20201012)

Example

Request:

{
  "id": "1",
  "data": {
    "endpoint": "us",
    "resultPath": "death"
  },
  "debug": {
    "cacheKey": "HulnsPpS29hIXRL5A4zkpck31Kk="
  }
}

Response:

{
  "jobRunID": "1",
  "data": {
    "payload": [
      {
        "date": 20210307,
        "states": 56,
        "positive": 28756489,
        "negative": 74582825,
        "pending": 11808,
        "hospitalizedCurrently": 40199,
        "hospitalizedCumulative": 776361,
        "inIcuCurrently": 8134,
        "inIcuCumulative": 45475,
        "onVentilatorCurrently": 2802,
        "onVentilatorCumulative": 4281,
        "dateChecked": "2021-03-07T24:00:00Z",
        "death": 515151,
        "hospitalized": 776361,
        "totalTestResults": 363825123,
        "lastModified": "2021-03-07T24:00:00Z",
        "recovered": null,
        "total": 0,
        "posNeg": 0,
        "deathIncrease": 842,
        "hospitalizedIncrease": 726,
        "negativeIncrease": 131835,
        "positiveIncrease": 41835,
        "totalTestResultsIncrease": 1170059,
        "hash": "a80d0063822e251249fd9a44730c49cb23defd83"
      },
      {
        "date": 20210306,
        "states": 56,
        "positive": 28714654,
        "negative": 74450990,
        "pending": 11783,
        "hospitalizedCurrently": 41401,
        "hospitalizedCumulative": 775635,
        "inIcuCurrently": 8409,
        "inIcuCumulative": 45453,
        "onVentilatorCurrently": 2811,
        "onVentilatorCumulative": 4280,
        "dateChecked": "2021-03-06T24:00:00Z",
        "death": 514309,
        "hospitalized": 775635,
        "totalTestResults": 362655064,
        "lastModified": "2021-03-06T24:00:00Z",
        "recovered": null,
        "total": 0,
        "posNeg": 0,
        "deathIncrease": 1680,
        "hospitalizedIncrease": 503,
        "negativeIncrease": 143835,
        "positiveIncrease": 60015,
        "totalTestResultsIncrease": 1430992,
        "hash": "dae5e558c24adb86686bbd58c08cce5f610b8bb0"
      },
      {
        "date": 20210305,
        "states": 56,
        "positive": 28654639,
        "negative": 74307155,
        "pending": 12213,
        "hospitalizedCurrently": 42541,
        "hospitalizedCumulative": 775132,
        "inIcuCurrently": 8634,
        "inIcuCumulative": 45373,
        "onVentilatorCurrently": 2889,
        "onVentilatorCumulative": 4275,
        "dateChecked": "2021-03-05T24:00:00Z",
        "death": 512629,
        "hospitalized": 775132,
        "totalTestResults": 361224072,
        "lastModified": "2021-03-05T24:00:00Z",
        "recovered": null,
        "total": 0,
        "posNeg": 0,
        "deathIncrease": 2221,
        "hospitalizedIncrease": 2781,
        "negativeIncrease": 271917,
        "positiveIncrease": 68787,
        "totalTestResultsIncrease": 1744417,
        "hash": "724844c01659d0103801c57c0f72bf8cc8ab025c"
      },
      {
        "date": 20210304,
        "states": 56,
        "positive": 28585852,
        "negative": 74035238,
        "pending": 12405,
        "hospitalizedCurrently": 44172,
        "hospitalizedCumulative": 772351,
        "inIcuCurrently": 8970,
        "inIcuCumulative": 45293,
        "onVentilatorCurrently": 2973,
        "onVentilatorCumulative": 4267,
        "dateChecked": "2021-03-04T24:00:00Z",
        "death": 510408,
        "hospitalized": 772351,
        "totalTestResults": 359479655,
        "lastModified": "2021-03-04T24:00:00Z",
        "recovered": null,
        "total": 0,
        "posNeg": 0,
        "deathIncrease": 1743,
        "hospitalizedIncrease": 1530,
        "negativeIncrease": 177957,
        "positiveIncrease": 65487,
        "totalTestResultsIncrease": 1590984,
        "hash": "5c549ad30f9abf48dc5de36d20fa707014be1ff3"
      }
    ],
    "result": 515151
  },
  "result": 515151,
  "statusCode": 200,
  "providerStatusCode": 200
}

MIT License