GET historical/all

disease.sh:covid-19-api-disease.sh

Summary: Get historical global COVID-19 data
Operation ID: getHistoricalAll
Auth: none

Returns historical time-series data for global COVID-19 statistics. Instead of current totals, this endpoint provides day-by-day data for worldwide cases, deaths, and recoveries over a specified time period. This is the endpoint to use for building trend charts, calculating growth rates, or analyzing the pandemic's progression over time. By default it returns the last 30 days, but you can request the full history or a custom range.

Original spec description

Returns historical time series data for worldwide cases, deaths, and recovered.

Usage Tips

- Default is 30 days of history; use `lastdays=all` for complete timeline since pandemic start - Use `lastdays=7` for weekly trends, `lastdays=30` for monthly view - The response contains three parallel arrays: cases, deaths, and recovered, keyed by date - Dates are in M/D/YY format (e.g., "3/15/20") - you'll need to parse these for charting - Data updates daily, so today's date won't appear until tomorrow

Parameters (1)

lastdays (string, query, optional, default: 30)

Number of days to return. Use 'all' for full history or a number (default: 30)

Examples (4)

TitleTypeURLAction
Get last 30 days of global COVID-19 data (default) curl https://disease.sh/v3/covid-19/historical/all
Get last 7 days of global COVID-19 data curl https://disease.sh/v3/covid-19/historical/all?lastdays=7
Get all historical global COVID-19 data curl https://disease.sh/v3/covid-19/historical/all?lastdays=all
Get historical global COVID-19 data openapi-spec https://disease.sh/v3/covid-19/historical/all?lastdays=30

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-03-23 10:40:52.532944 200 410ms
2026-03-23 10:23:38.490449 200 554ms
2026-03-23 10:16:06.517473 200 688ms
2026-03-23 09:26:40.802401 200 531ms

Response Changes

WhenOldNew
2026-03-23 10:16:06.517473 65d1619adba9 449abb17ee91
2026-03-23 10:23:38.490449 449abb17ee91 934fbc9e28b8