COVID-19 Casemap API and more

RESTful API

Our RESTful API is free to use.

1. Get data at latitude and longitude in the database

Request:  https://covid19.tmsoftwareinc.com/api/v1/latlngs?lat=34.14077141763452&long=-118.24982214678234

Response:  Array of JSON like
[{"country":"us","state":"California","county":"Los Angeles","city":"Glendale","cases":3393,"newcases":18,"7rate":10.17,"deaths":-1,"date":"2020-09-13"},
{"country":"us","state":"California","county":"Los Angeles","city":"Glendale","cases":3375,"newcases":16,"7rate":9.28,"deaths":-1,"date":"2020-09-12"},
{"country":"us","state":"California","county":"Los Angeles","city":"Glendale","cases":3359,"newcases":27,"7rate":8.86,"deaths":-1,"date":"2020-09-11"},
{"country":"us","state":"California","county":"Los Angeles","city":"Glendale","cases":3332,"newcases":34,"7rate":8.86,"deaths":-1,"date":"2020-09-10"},

-1 in cases/newcases/7rate/deaths means NA. 7rate is average of newcases in last 7 days per 100k population


2. Get all 7rate data today in the database

Request:  https://covid19.tmsoftwareinc.com/api/v1/bounds

Response:  Array of JSON like
[{"state":"California","county":"Orange","city":"La Habra","lat":33.9318591,"lng":-117.946137,"cases":1352,"date":"2020-09-12T07:00:00.000Z","sevenrate":9.25},
{"state":"California","county":"Orange","city":"Los Alamitos","lat":33.8032009,"lng":-118.0718894,"cases":155,"date":"2020-09-12T07:00:00.000Z","sevenrate":9.52},
{"state":"California","county":"Orange","city":"San Juan Capistrano","lat":33.5019027,"lng":-117.6627655,"cases":459,"date":"2020-09-12T07:00:00.000Z","sevenrate":9.9},
{"state":"California","county":"Orange","city":"Santa Ana","lat":33.7454725,"lng":-117.867653,"cases":9734,"date":"2020-09-12T07:00:00.000Z","sevenrate":8.61},

-1 in cases/newcases/sevenrate/deaths means NA. sevenrate is average of newcases in last 7 days per 100k population


3. Get all data in the database

Request:  https://covid19api.tmsoftwareinc.com/v1/cases/

Response:  Array of JSON like
[{"country":"United Kingdom","state":"Cayman Islands","county":"","city":"","cases":66,"deaths":1,"date":"2020-04-21"},
{"country":"United Kingdom","state":"Channel Islands","county":"","city":"","cases":496,"deaths":24,"date":"2020-04-21"},
{"country":"Netherlands","state":"Curacao","county":"","city":"","cases":14,"deaths":1,"date":"2020-04-21"},
{"country":"United Kingdom","state":"Falkland Islands (Malvinas)","county":"","city":"","cases":11,"deaths":0,"date":"2020-04-21"},

-1 in cases or deaths means NA


4. Get data for a city, county, state, country

Request:  https://covid19api.tmsoftwareinc.com/v1/addresses?country=us&state=california&county=orange&city=irvine
If city is omitted, county data will be returned for the United States.
For the other countries, state, county, and city are ignored in most cases.

Response:  Array of JSON like
[{"country":"us","state":"California","county":"Orange","city":"Irvine","cases":118,"deaths":-1,"date":"2020-04-21"},
{"country":"us","state":"California","county":"Orange","city":"Irvine","cases":118,"deaths":-1,"date":"2020-04-20"},
{"country":"us","state":"California","county":"Orange","city":"Irvine","cases":118,"deaths":-1,"date":"2020-04-19"},
{"country":"us","state":"California","county":"Orange","city":"Irvine","cases":116,"deaths":-1,"date":"2020-04-18"},

-1 in cases or deaths means NA

Casemap is open-source software

Source code of COVID-19 Casemap is available at GitHub and is licensed under the MIT License