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

[BUG]nyt source does not seem to work. #325

Open
devanshsanghvi opened this issue Aug 1, 2020 · 3 comments
Open

[BUG]nyt source does not seem to work. #325

devanshsanghvi opened this issue Aug 1, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@devanshsanghvi
Copy link

devanshsanghvi commented Aug 1, 2020

Hi the nyt source does not seem to work.
curl -X GET "https://covid-tracker-us.herokuapp.com/v2/locations?source=nyt&country_code=US&county=Los%20Angeles&timelines=true" -H "accept: application/json

@devanshsanghvi devanshsanghvi added the bug Something isn't working label Aug 1, 2020
@devanshsanghvi devanshsanghvi changed the title [BUG]Hi the nyt source does not seem to work. curl -X GET "https://covid-tracker-us.herokuapp.com/v2/locations?source=nyt&country_code=US&county=Los%20Angeles&timelines=true" -H "accept: application/json". [BUG]nyt source does not seem to work. Aug 1, 2020
@Kilo59
Copy link
Collaborator

Kilo59 commented Aug 1, 2020

Seem's to work for me, it's possible it timed out because the cache needed to be refreshed.

https://covid-tracker-us.herokuapp.com/v2/locations?source=nyt&county=los%20angeles

{
  "latest": {
    "confirmed": 188481,
    "deaths": 4621,
    "recovered": 0
  },
  "locations": [
    {
      "id": 4,
      "country": "US",
      "country_code": "US",
      "country_population": 327167434,
      "province": "California",
      "county": "Los Angeles",
      "last_updated": "2020-08-01T15:57:46.432284Z",
      "coordinates": {
        "latitude": null,
        "longitude": null
      },
      "latest": {
        "confirmed": 188481,
        "deaths": 4621,
        "recovered": 0
      }
    }
  ]
}

Edit:

Just tried it again and got a 503, I'll take a look at what's happening.

@Kilo59
Copy link
Collaborator

Kilo59 commented Aug 1, 2020

https://covid-tracker-us.herokuapp.com/v2/locations?source=nyt&county=los%20angeles&timelines=true

{
  "latest": {
    "confirmed": 188481,
    "deaths": 4621,
    "recovered": 0
  },
  "locations": [
    {
      "id": 4,
      "country": "US",
      "country_code": "US",
      "country_population": 327167434,
      "province": "California",
      "county": "Los Angeles",
      "last_updated": "2020-08-01T17:55:52.661104Z",
      "coordinates": {
        "latitude": null,
        "longitude": null
      },
      "latest": {
        "confirmed": 188481,
        "deaths": 4621,
        "recovered": 0
      },
      "timelines": {
        "confirmed": {
          "latest": 188481,
          "timeline": {
            "2020-01-26T00:00:00Z": 1,
            "2020-01-27T00:00:00Z": 1,
            "2020-01-28T00:00:00Z": 1,
            "2020-01-29T00:00:00Z": 1,
            "2020-01-30T00:00:00Z": 1,
            "2020-01-31T00:00:00Z": 1,
            "2020-02-01T00:00:00Z": 1,
            "2020-02-02T00:00:00Z": 1,
            "2020-02-03T00:00:00Z": 1,
            "2020-02-04T00:00:00Z": 1,
            "2020-02-05T00:00:00Z": 1,
            "2020-02-06T00:00:00Z": 1,
            "2020-02-07T00:00:00Z": 1,
            "2020-02-08T00:00:00Z": 1,
            "2020-02-09T00:00:00Z": 1,
            "2020-02-10T00:00:00Z": 1,
            "2020-02-11T00:00:00Z": 1,
            "2020-02-12T00:00:00Z": 1,
            "2020-02-13T00:00:00Z": 1,
            "2020-02-14T00:00:00Z": 1,
            "2020-02-15T00:00:00Z": 1,
            "2020-02-16T00:00:00Z": 1,
            "2020-02-17T00:00:00Z": 1,
            "2020-02-18T00:00:00Z": 1,
            "2020-02-19T00:00:00Z": 1,
            "2020-02-20T00:00:00Z": 1,
            "2020-02-21T00:00:00Z": 1,
            "2020-02-22T00:00:00Z": 1,
            "2020-02-23T00:00:00Z": 1,
            "2020-02-24T00:00:00Z": 1,
            "2020-02-25T00:00:00Z": 1,
            "2020-02-26T00:00:00Z": 1,
            "2020-02-27T00:00:00Z": 1,
            "2020-02-28T00:00:00Z": 1,
            "2020-02-29T00:00:00Z": 1,
            "2020-03-01T00:00:00Z": 1,
            "2020-03-02T00:00:00Z": 1,
            "2020-03-03T00:00:00Z": 1,
            "2020-03-04T00:00:00Z": 7,
            "2020-03-05T00:00:00Z": 11,
            "2020-03-06T00:00:00Z": 13,
            "2020-03-07T00:00:00Z": 14,
            "2020-03-08T00:00:00Z": 14,
            "2020-03-09T00:00:00Z": 19,
            "2020-03-10T00:00:00Z": 20,
            "2020-03-11T00:00:00Z": 28,
            "2020-03-12T00:00:00Z": 32,
            "2020-03-13T00:00:00Z": 40,
            "2020-03-14T00:00:00Z": 53,
            "2020-03-15T00:00:00Z": 69,
            "2020-03-16T00:00:00Z": 94,
            "2020-03-17T00:00:00Z": 144,
            "2020-03-18T00:00:00Z": 190,
            "2020-03-19T00:00:00Z": 231,
            "2020-03-20T00:00:00Z": 292,
            "2020-03-21T00:00:00Z": 351,
            "2020-03-22T00:00:00Z": 421,
            "2020-03-23T00:00:00Z": 536,
            "2020-03-24T00:00:00Z": 662,
            "2020-03-25T00:00:00Z": 799,
            "2020-03-26T00:00:00Z": 1216,
            "2020-03-27T00:00:00Z": 1465,
            "2020-03-28T00:00:00Z": 1804,
            "2020-03-29T00:00:00Z": 2136,
            "2020-03-30T00:00:00Z": 2474,
            "2020-03-31T00:00:00Z": 3011,
            "2020-04-01T00:00:00Z": 3518,
            "2020-04-02T00:00:00Z": 4045,
            "2020-04-03T00:00:00Z": 4566,
            "2020-04-04T00:00:00Z": 5277,
            "2020-04-05T00:00:00Z": 5940,
            "2020-04-06T00:00:00Z": 6360,
            "2020-04-07T00:00:00Z": 6910,
            "2020-04-08T00:00:00Z": 7530,
            "2020-04-09T00:00:00Z": 7955,
            "2020-04-10T00:00:00Z": 8430,
            "2020-04-11T00:00:00Z": 8873,
            "2020-04-12T00:00:00Z": 9192,
            "2020-04-13T00:00:00Z": 9420,
            "2020-04-14T00:00:00Z": 10047,
            "2020-04-15T00:00:00Z": 10496,
            "2020-04-16T00:00:00Z": 10854,
            "2020-04-17T00:00:00Z": 11391,
            "2020-04-18T00:00:00Z": 12021,
            "2020-04-19T00:00:00Z": 12341,
            "2020-04-20T00:00:00Z": 13816,
            "2020-04-21T00:00:00Z": 15140,
            "2020-04-22T00:00:00Z": 16435,
            "2020-04-23T00:00:00Z": 17508,
            "2020-04-24T00:00:00Z": 18545,
            "2020-04-25T00:00:00Z": 19107,
            "2020-04-26T00:00:00Z": 19528,
            "2020-04-27T00:00:00Z": 20417,
            "2020-04-28T00:00:00Z": 20976,
            "2020-04-29T00:00:00Z": 22485,
            "2020-04-30T00:00:00Z": 23182,
            "2020-05-01T00:00:00Z": 24215,
            "2020-05-02T00:00:00Z": 24894,
            "2020-05-03T00:00:00Z": 25662,
            "2020-05-04T00:00:00Z": 26217,
            "2020-05-05T00:00:00Z": 27815,
            "2020-05-06T00:00:00Z": 28644,
            "2020-05-07T00:00:00Z": 29427,
            "2020-05-08T00:00:00Z": 30296,
            "2020-05-09T00:00:00Z": 31197,
            "2020-05-10T00:00:00Z": 31677,
            "2020-05-11T00:00:00Z": 32258,
            "2020-05-12T00:00:00Z": 33180,
            "2020-05-13T00:00:00Z": 34428,
            "2020-05-14T00:00:00Z": 35329,
            "2020-05-15T00:00:00Z": 36259,
            "2020-05-16T00:00:00Z": 37303,
            "2020-05-17T00:00:00Z": 37974,
            "2020-05-18T00:00:00Z": 38451,
            "2020-05-19T00:00:00Z": 39573,
            "2020-05-20T00:00:00Z": 40857,
            "2020-05-21T00:00:00Z": 42037,
            "2020-05-22T00:00:00Z": 43052,
            "2020-05-23T00:00:00Z": 44055,
            "2020-05-24T00:00:00Z": 44988,
            "2020-05-25T00:00:00Z": 46018,
            "2020-05-26T00:00:00Z": 47822,
            "2020-05-27T00:00:00Z": 48700,
            "2020-05-28T00:00:00Z": 49774,
            "2020-05-29T00:00:00Z": 51562,
            "2020-05-30T00:00:00Z": 53651,
            "2020-05-31T00:00:00Z": 54996,
            "2020-06-01T00:00:00Z": 55968,
            "2020-06-02T00:00:00Z": 57118,
            "2020-06-03T00:00:00Z": 58234,
            "2020-06-04T00:00:00Z": 59650,
            "2020-06-05T00:00:00Z": 61045,
            "2020-06-06T00:00:00Z": 62338,
            "2020-06-07T00:00:00Z": 63844,
            "2020-06-08T00:00:00Z": 64644,
            "2020-06-09T00:00:00Z": 65822,
            "2020-06-10T00:00:00Z": 67064,
            "2020-06-11T00:00:00Z": 68875,
            "2020-06-12T00:00:00Z": 70476,
            "2020-06-13T00:00:00Z": 72023,
            "2020-06-14T00:00:00Z": 73018,
            "2020-06-15T00:00:00Z": 73791,
            "2020-06-16T00:00:00Z": 75084,
            "2020-06-17T00:00:00Z": 77189,
            "2020-06-18T00:00:00Z": 78227,
            "2020-06-19T00:00:00Z": 79609,
            "2020-06-20T00:00:00Z": 81636,
            "2020-06-21T00:00:00Z": 83397,
            "2020-06-22T00:00:00Z": 85942,
            "2020-06-23T00:00:00Z": 88262,
            "2020-06-24T00:00:00Z": 89490,
            "2020-06-25T00:00:00Z": 91467,
            "2020-06-26T00:00:00Z": 93232,
            "2020-06-27T00:00:00Z": 95371,
            "2020-06-28T00:00:00Z": 97894,
            "2020-06-29T00:00:00Z": 100772,
            "2020-06-30T00:00:00Z": 103529,
            "2020-07-01T00:00:00Z": 105507,
            "2020-07-02T00:00:00Z": 107667,
            "2020-07-03T00:00:00Z": 110310,
            "2020-07-04T00:00:00Z": 113497,
            "2020-07-05T00:00:00Z": 114993,
            "2020-07-06T00:00:00Z": 116570,
            "2020-07-07T00:00:00Z": 120539,
            "2020-07-08T00:00:00Z": 123004,
            "2020-07-09T00:00:00Z": 124738,
            "2020-07-10T00:00:00Z": 127358,
            "2020-07-11T00:00:00Z": 130242,
            "2020-07-12T00:00:00Z": 133549,
            "2020-07-13T00:00:00Z": 136129,
            "2020-07-14T00:00:00Z": 140307,
            "2020-07-15T00:00:00Z": 143009,
            "2020-07-16T00:00:00Z": 147468,
            "2020-07-17T00:00:00Z": 150319,
            "2020-07-18T00:00:00Z": 153041,
            "2020-07-19T00:00:00Z": 155887,
            "2020-07-20T00:00:00Z": 159045,
            "2020-07-21T00:00:00Z": 161673,
            "2020-07-22T00:00:00Z": 164870,
            "2020-07-23T00:00:00Z": 166848,
            "2020-07-24T00:00:00Z": 168757,
            "2020-07-25T00:00:00Z": 172325,
            "2020-07-26T00:00:00Z": 173995,
            "2020-07-27T00:00:00Z": 176028,
            "2020-07-28T00:00:00Z": 178642,
            "2020-07-29T00:00:00Z": 183383,
            "2020-07-30T00:00:00Z": 185872,
            "2020-07-31T00:00:00Z": 188481
          }
        },
        "deaths": {
          "latest": 4621,
          "timeline": {
            "2020-01-26T00:00:00Z": 0,
            "2020-01-27T00:00:00Z": 0,
            "2020-01-28T00:00:00Z": 0,
            "2020-01-29T00:00:00Z": 0,
            "2020-01-30T00:00:00Z": 0,
            "2020-01-31T00:00:00Z": 0,
            "2020-02-01T00:00:00Z": 0,
            "2020-02-02T00:00:00Z": 0,
            "2020-02-03T00:00:00Z": 0,
            "2020-02-04T00:00:00Z": 0,
            "2020-02-05T00:00:00Z": 0,
            "2020-02-06T00:00:00Z": 0,
            "2020-02-07T00:00:00Z": 0,
            "2020-02-08T00:00:00Z": 0,
            "2020-02-09T00:00:00Z": 0,
            "2020-02-10T00:00:00Z": 0,
            "2020-02-11T00:00:00Z": 0,
            "2020-02-12T00:00:00Z": 0,
            "2020-02-13T00:00:00Z": 0,
            "2020-02-14T00:00:00Z": 0,
            "2020-02-15T00:00:00Z": 0,
            "2020-02-16T00:00:00Z": 0,
            "2020-02-17T00:00:00Z": 0,
            "2020-02-18T00:00:00Z": 0,
            "2020-02-19T00:00:00Z": 0,
            "2020-02-20T00:00:00Z": 0,
            "2020-02-21T00:00:00Z": 0,
            "2020-02-22T00:00:00Z": 0,
            "2020-02-23T00:00:00Z": 0,
            "2020-02-24T00:00:00Z": 0,
            "2020-02-25T00:00:00Z": 0,
            "2020-02-26T00:00:00Z": 0,
            "2020-02-27T00:00:00Z": 0,
            "2020-02-28T00:00:00Z": 0,
            "2020-02-29T00:00:00Z": 0,
            "2020-03-01T00:00:00Z": 0,
            "2020-03-02T00:00:00Z": 0,
            "2020-03-03T00:00:00Z": 0,
            "2020-03-04T00:00:00Z": 0,
            "2020-03-05T00:00:00Z": 0,
            "2020-03-06T00:00:00Z": 0,
            "2020-03-07T00:00:00Z": 0,
            "2020-03-08T00:00:00Z": 0,
            "2020-03-09T00:00:00Z": 0,
            "2020-03-10T00:00:00Z": 0,
            "2020-03-11T00:00:00Z": 1,
            "2020-03-12T00:00:00Z": 1,
            "2020-03-13T00:00:00Z": 1,
            "2020-03-14T00:00:00Z": 1,
            "2020-03-15T00:00:00Z": 1,
            "2020-03-16T00:00:00Z": 1,
            "2020-03-17T00:00:00Z": 1,
            "2020-03-18T00:00:00Z": 1,
            "2020-03-19T00:00:00Z": 2,
            "2020-03-20T00:00:00Z": 2,
            "2020-03-21T00:00:00Z": 4,
            "2020-03-22T00:00:00Z": 5,
            "2020-03-23T00:00:00Z": 7,
            "2020-03-24T00:00:00Z": 11,
            "2020-03-25T00:00:00Z": 13,
            "2020-03-26T00:00:00Z": 21,
            "2020-03-27T00:00:00Z": 27,
            "2020-03-28T00:00:00Z": 33,
            "2020-03-29T00:00:00Z": 37,
            "2020-03-30T00:00:00Z": 44,
            "2020-03-31T00:00:00Z": 54,
            "2020-04-01T00:00:00Z": 65,
            "2020-04-02T00:00:00Z": 78,
            "2020-04-03T00:00:00Z": 89,
            "2020-04-04T00:00:00Z": 117,
            "2020-04-05T00:00:00Z": 132,
            "2020-04-06T00:00:00Z": 147,
            "2020-04-07T00:00:00Z": 169,
            "2020-04-08T00:00:00Z": 198,
            "2020-04-09T00:00:00Z": 223,
            "2020-04-10T00:00:00Z": 241,
            "2020-04-11T00:00:00Z": 265,
            "2020-04-12T00:00:00Z": 296,
            "2020-04-13T00:00:00Z": 320,
            "2020-04-14T00:00:00Z": 360,
            "2020-04-15T00:00:00Z": 402,
            "2020-04-16T00:00:00Z": 455,
            "2020-04-17T00:00:00Z": 495,
            "2020-04-18T00:00:00Z": 576,
            "2020-04-19T00:00:00Z": 600,
            "2020-04-20T00:00:00Z": 617,
            "2020-04-21T00:00:00Z": 663,
            "2020-04-22T00:00:00Z": 729,
            "2020-04-23T00:00:00Z": 797,
            "2020-04-24T00:00:00Z": 850,
            "2020-04-25T00:00:00Z": 895,
            "2020-04-26T00:00:00Z": 913,
            "2020-04-27T00:00:00Z": 942,
            "2020-04-28T00:00:00Z": 1000,
            "2020-04-29T00:00:00Z": 1056,
            "2020-04-30T00:00:00Z": 1111,
            "2020-05-01T00:00:00Z": 1172,
            "2020-05-02T00:00:00Z": 1209,
            "2020-05-03T00:00:00Z": 1229,
            "2020-05-04T00:00:00Z": 1256,
            "2020-05-05T00:00:00Z": 1313,
            "2020-05-06T00:00:00Z": 1367,
            "2020-05-07T00:00:00Z": 1418,
            "2020-05-08T00:00:00Z": 1468,
            "2020-05-09T00:00:00Z": 1512,
            "2020-05-10T00:00:00Z": 1530,
            "2020-05-11T00:00:00Z": 1569,
            "2020-05-12T00:00:00Z": 1613,
            "2020-05-13T00:00:00Z": 1659,
            "2020-05-14T00:00:00Z": 1659,
            "2020-05-15T00:00:00Z": 1755,
            "2020-05-16T00:00:00Z": 1793,
            "2020-05-17T00:00:00Z": 1821,
            "2020-05-18T00:00:00Z": 1839,
            "2020-05-19T00:00:00Z": 1913,
            "2020-05-20T00:00:00Z": 1970,
            "2020-05-21T00:00:00Z": 2016,
            "2020-05-22T00:00:00Z": 2049,
            "2020-05-23T00:00:00Z": 2090,
            "2020-05-24T00:00:00Z": 2104,
            "2020-05-25T00:00:00Z": 2116,
            "2020-05-26T00:00:00Z": 2143,
            "2020-05-27T00:00:00Z": 2195,
            "2020-05-28T00:00:00Z": 2241,
            "2020-05-29T00:00:00Z": 2290,
            "2020-05-30T00:00:00Z": 2338,
            "2020-05-31T00:00:00Z": 2362,
            "2020-06-01T00:00:00Z": 2384,
            "2020-06-02T00:00:00Z": 2443,
            "2020-06-03T00:00:00Z": 2489,
            "2020-06-04T00:00:00Z": 2531,
            "2020-06-05T00:00:00Z": 2565,
            "2020-06-06T00:00:00Z": 2620,
            "2020-06-07T00:00:00Z": 2645,
            "2020-06-08T00:00:00Z": 2655,
            "2020-06-09T00:00:00Z": 2707,
            "2020-06-10T00:00:00Z": 2768,
            "2020-06-11T00:00:00Z": 2813,
            "2020-06-12T00:00:00Z": 2832,
            "2020-06-13T00:00:00Z": 2890,
            "2020-06-14T00:00:00Z": 2907,
            "2020-06-15T00:00:00Z": 2926,
            "2020-06-16T00:00:00Z": 2959,
            "2020-06-17T00:00:00Z": 2991,
            "2020-06-18T00:00:00Z": 3027,
            "2020-06-19T00:00:00Z": 3063,
            "2020-06-20T00:00:00Z": 3110,
            "2020-06-21T00:00:00Z": 3120,
            "2020-06-22T00:00:00Z": 3137,
            "2020-06-23T00:00:00Z": 3171,
            "2020-06-24T00:00:00Z": 3205,
            "2020-06-25T00:00:00Z": 3246,
            "2020-06-26T00:00:00Z": 3267,
            "2020-06-27T00:00:00Z": 3285,
            "2020-06-28T00:00:00Z": 3305,
            "2020-06-29T00:00:00Z": 3326,
            "2020-06-30T00:00:00Z": 3369,
            "2020-07-01T00:00:00Z": 3402,
            "2020-07-02T00:00:00Z": 3454,
            "2020-07-03T00:00:00Z": 3454,
            "2020-07-04T00:00:00Z": 3454,
            "2020-07-05T00:00:00Z": 3487,
            "2020-07-06T00:00:00Z": 3534,
            "2020-07-07T00:00:00Z": 3579,
            "2020-07-08T00:00:00Z": 3642,
            "2020-07-09T00:00:00Z": 3689,
            "2020-07-10T00:00:00Z": 3738,
            "2020-07-11T00:00:00Z": 3793,
            "2020-07-12T00:00:00Z": 3809,
            "2020-07-13T00:00:00Z": 3822,
            "2020-07-14T00:00:00Z": 3894,
            "2020-07-15T00:00:00Z": 3936,
            "2020-07-16T00:00:00Z": 3988,
            "2020-07-17T00:00:00Z": 4047,
            "2020-07-18T00:00:00Z": 4084,
            "2020-07-19T00:00:00Z": 4095,
            "2020-07-20T00:00:00Z": 4104,
            "2020-07-21T00:00:00Z": 4154,
            "2020-07-22T00:00:00Z": 4213,
            "2020-07-23T00:00:00Z": 4262,
            "2020-07-24T00:00:00Z": 4300,
            "2020-07-25T00:00:00Z": 4351,
            "2020-07-26T00:00:00Z": 4360,
            "2020-07-27T00:00:00Z": 4375,
            "2020-07-28T00:00:00Z": 4426,
            "2020-07-29T00:00:00Z": 4516,
            "2020-07-30T00:00:00Z": 4552,
            "2020-07-31T00:00:00Z": 4621
          }
        },
        "recovered": {
          "latest": 0,
          "timeline": {}
        }
      }
    }
  ]
}

@devanshsanghvi
Copy link
Author

devanshsanghvi commented Aug 1, 2020

Hi thanks a lot, how can i see timelines for US States, cause when i try to do this https://covid-tracker-us.herokuapp.com/v2/locations?country_code=US&source=nyt&province=California&timelines=true, i am unable to get timelines for states individually but instead for some reason i get breakdowns of county and related details.

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