Historical Data by Province Name
GET https://corona.lmao.ninja/v2/historical/:query/:province?lastdays=
Get a province within a country's time series. Example is /v2/historical/chn/tibet. CHN is China's iso3 code. Data is updated every 10 minutes.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
lastdays | null | Number of days you want the data to go back to. Default is 30. Use all for full data set. Ex: 15, all, 24. |
RESPONSES
status: OK
{"country":"China","province":"hainan","timeline":{"cases":{"3/21/20":168,"3/22/20":168,"3/23/20":168,"3/24/20":168,"3/25/20":168,"3/26/20":168,"3/27/20":168,"3/28/20":168,"3/29/20":168,"3/30/20":168,"3/31/20":168,"4/1/20":168,"4/2/20":168,"4/3/20":168,"4/4/20":168,"4/5/20":168,"4/6/20":168,"4/7/20":168,"4/8/20":168,"4/9/20":168,"4/10/20":168,"4/11/20":168,"4/12/20":168,"4/13/20":168,"4/14/20":168,"4/15/20":168,"4/16/20":168,"4/17/20":168,"4/18/20":168,"4/19/20":168},"deaths":{"3/21/20":6,"3/22/20":6,"3/23/20":6,"3/24/20":6,"3/25/20":6,"3/26/20":6,"3/27/20":6,"3/28/20":6,"3/29/20":6,"3/30/20":6,"3/31/20":6,"4/1/20":6,"4/2/20":6,"4/3/20":6,"4/4/20":6,"4/5/20":6,"4/6/20":6,"4/7/20":6,"4/8/20":6,"4/9/20":6,"4/10/20":6,"4/11/20":6,"4/12/20":6,"4/13/20":6,"4/14/20":6,"4/15/20":6,"4/16/20":6,"4/17/20":6,"4/18/20":6,"4/19/20":6},"recovered":{"3/21/20":161,"3/22/20":161,"3/23/20":161,"3/24/20":168,"3/25/20":168,"3/26/20":168,"3/27/20":168,"3/28/20":168,"3/29/20":168,"3/30/20":168,"3/31/20":168,"4/1/20":168,"4/2/20":162,"4/3/20":162,"4/4/20":162,"4/5/20":162,"4/6/20":162,"4/7/20":162,"4/8/20":162,"4/9/20":162,"4/10/20":162,"4/11/20":162,"4/12/20":162,"4/13/20":162,"4/14/20":162,"4/15/20":162,"4/16/20":162,"4/17/20":162,"4/18/20":162,"4/19/20":162}}}