The Covid Atlas’ public data API provides access to state-level and county-level USAFacts confirmed and death count data, and local indicator of spatial association results (LISA statistics).
https://api.theuscovidatlas.org
Confirmed and Death Count: USAFacts
USAFacts provides county-level death and confirmed data on a daily basis with updates every afternoon.
str
case insensitive state abbreviationstr
"data" str
“confirmed”, “death”, default as “death”str
“usafacts” or “1p3a” case insensitive, default as “usafacts”str
“state” or “county”, default as “county”8-digit integer
start date in format as “20201005”, default as 7 days prior to today. Range from 20200122 to today8-digit integer
end date in format as “20201005”, default as today. Range from 20200122 to todayTo get county-level death data of Illinois from September 1st, 2020 to October 1st, 2020, the query should be set as:
domain/v1/lisa/?state=il&category=data&start=20200901&end=20201001&type=death
The Covid Atlas team calculated LISA statistics using the library pygeoda. Data used in calculation were confirmed and death data provided by USAFacts and 1 Point 3 Acres. The LISA for each observation gives an indication of the extent of significant spatial clustering of similar values around that observation.In our case, county are divided into five categories:
str
case insensitive state abbreviationstr
"lisa" str
“confirmed”, “death”, default as “death”str
“usafacts” or “1p3a” case insensitive, default as “usafacts”str
“state” or “county”, default as “county”8-digit integer
start date in format as “20201005”, default as 7 days prior to today. Range from 20200122 to today8-digit integer
end date in format as “20201005”, default as today. Range from 20200122 to todayTo get county-level death lisa of Illinois using 1P3A data from September 1st, 2020 to October 1st, 2020, the query should be set as:
domain/v1/lisa/?state=IL&category=lisa&start=20200901&end=20201001&source=1p3a&type=death&level=county
import requests
url = 'https://api.theuscovidatlas.org/v1/lisa/?state=AZ&category=lisa'
header = {'your-api-key': 'your-api-secret-key'}
req = requests.get(url, headers=header
req.text