Historical Data for all Counties in a Specified State
GET https://corona.lmao.ninja/v2/historical/usacounties/:state?lastdays=30
Get time series info from the JHU CSSE Data Repository. Every date since 1/22/20 has an entry tracking deaths and cases. Updated each day at 23:59 UTC. Data is updated every 10 minutes.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
lastdays | number | number of days you want the data to go back to. Default is 30. Use all for full data set. Ex: 15, all, 24. | |
Default value: 30 |
RESPONSES
status: OK
[{"province":"guam","county":null,"timeline":{"cases":{"3/21/20":15,"3/22/20":27,"3/23/20":29,"3/24/20":32,"3/25/20":37,"3/26/20":45,"3/27/20":51,"3/28/20":55,"3/29/20":56,"3/30/20":58,"3/31/20":69,"4/1/20":77,"4/2/20":82,"4/3/20":84,"4/4/20":93,"4/5/20":112,"4/6/20":113,"4/7/20":121,"4/8/20":121,"4/9/20":128,"4/10/20":130,"4/11/20":133,"4/12/20":133,"4/13/20":133,"4/14/20":133,"4/15/20":135,"4/16/20":135,"4/17/20":136,"4/18/20":136,"4/19/20":136},"deaths":{"3/21/20":0,"3/22/20":1,"3/23/20":1,"3/24/20":1,"3/25/20":1,"3/26/20":1,"3/27/20":1,"3/28/20":1,"3/29/20":1,"3/30/20":1,"3/31/20":2,"4/1/20":3,"4/2/20":3,"4/3/20":4,"4/4/20":4,"4/5/20":4,"4/6/20":4,"4/7/20":4,"4/8/20":4,"4/9/20":4,"4/10/20":4,"4/11/20":5,"4/12/20":5,"4/13/20":5,"4/14/20":5,"4/15/20":5,"4/16/20":5,"4/17/20":5,"4/18/20":5,"4/19/20":5}}}]