Open Disease (COVID/flu) API
Free, no-key data on COVID-19, influenza and other disease stats.
What it does
disease.sh (Open Disease Data) is a free API aggregating public epidemiological data: COVID-19 case/death/recovery/vaccine figures by country, state and county with historical time series, plus influenza surveillance data from the US CDC and Google.
Base URL
Authentication
None. Endpoints include /covid-19/all, /covid-19/countries/{country}, /covid-19/historical/{country}?lastdays=30, /covid-19/vaccine/coverage and /influenza/cdc/ILINet.
Code examples
curl -s "https://disease.sh/v3/covid-19/countries/nigeria?strict=true" curl -s "https://disease.sh/v3/covid-19/historical/all?lastdays=14"
import requests
r = requests.get("https://disease.sh/v3/covid-19/countries/brazil", timeout=10)
d = r.json()
print(d["cases"], d["deaths"], "updated", d["updated"])Rate limits & quotas
Roughly 50–100 requests/minute per IP; over that returns HTTP 429. Important currency caveat: the upstream COVID-19 sources (Johns Hopkins CSSE and Worldometers) stopped updating in 2023, so COVID figures are now essentially a historical archive. Influenza feeds (CDC ILINet) are still maintained.
Key response fields
| cases / deaths / recovered / active | Cumulative COVID counts |
| todayCases / todayDeaths | Daily deltas (frozen for COVID) |
| casesPerOneMillion / deathsPerOneMillion | Population-normalised |
| updated | Unix ms of the last data refresh — check how old it is |
| timeline.cases | Historical endpoint: date → cumulative value map |
Common errors
| 404 "Country not found" | Unknown or misspelled country — try an ISO code or strict=false. |
| 429 | Per-minute limit exceeded. |
| (stale updated timestamp) | Expected for COVID endpoints — the data is no longer refreshed upstream. |
When to use it (and alternatives)
Still useful for historical COVID analysis, retrospective charts and teaching, and for current US influenza surveillance. Do not present its COVID numbers as live. For US health regulatory data see openFDA.
FAQ
Is the COVID-19 data current?
No. The data providers disease.sh aggregates wound down their COVID tracking in 2023. The endpoints still respond, but the numbers are frozen — always show the updated date.
What is still being updated?
The influenza endpoints (/influenza/cdc/*) track CDC ILINet and related surveillance, which continue to publish. Vaccine coverage historical data is also static now.
Do I need a key for higher limits?
There is no key system. If you need more than ~100 requests/minute, cache responses or self-host — the project is open source.
New to APIs?
Short guides for working with this API — and any other.