Time series · overdose-deaths-county
Drug overdose deaths by county
CDC's provisional count of drug overdose deaths in the 12 months ending each month, for every US county since 2020. Counts from 1 to 9 are withheld by CDC.
- Updates
- Monthly
- Coverage
- —
- Current version
- —
- Last published
- —
- Validation
- —
- License
- US Government work
- Commercial use
- Allowed
Chart
Use the API
Each series and location is its own small file. The examples follow the series and location picked above. See the docs for versions, caching and errors.
curl
# One series for one place (.json or .csv)
curl -s "https://api.healthdata.dev/v1/overdose-deaths-county/all-drugs/us-county-02261.json"
# Every series and place in one file
curl -sO "https://api.healthdata.dev/v1/overdose-deaths-county/download/overdose-deaths-county.csv" Python (polars)
import polars as pl
# One series for one place
df = pl.read_csv("https://api.healthdata.dev/v1/overdose-deaths-county/all-drugs/us-county-02261.csv")
# Every series and place, with series and location columns
everything = pl.read_parquet("https://api.healthdata.dev/v1/overdose-deaths-county/download/overdose-deaths-county.parquet") JavaScript
const res = await fetch("https://api.healthdata.dev/v1/overdose-deaths-county/all-drugs/us-county-02261.json");
if (!res.ok) throw new Error((await res.json()).detail); // errors are problem+json
const { meta, data } = await res.json();
console.log(meta.location_name, data.at(-1)); // { date, value, ... } Downloads
The whole dataset in one file, with series and location columns. Parquet keeps the column types and is much smaller.
Schema and series
Each series file has these columns. The bulk downloads add series and location columns in
front.
| Column | Type | Unit | Can be empty | Description |
|---|---|---|---|---|
| date | month (YYYY-MM) | — | no | Last month of the 12-month period |
| deaths | integer | deaths | yes | Overdose deaths in the 12 months ending this month; null where withheld |
| suppressed | true / false | — | no | True where the count is between 1 and 9 and withheld |
| percent_pending | number | % | yes | Percent of records still pending investigation |
Series
| Series id | Name |
|---|---|
| all-drugs | All drug overdose deaths |
Locations
Covers all 3,222 US counties and equivalents (ids: us-county- plus the 5-digit FIPS code); 9 more named places.
| Location id | Name |
|---|---|
| us-county-02261 | Valdez-Cordova Census Area, AK (until 2019) |
| us-county-09001 | Fairfield County, CT (former county) |
| us-county-09003 | Hartford County, CT (former county) |
| us-county-09005 | Litchfield County, CT (former county) |
| us-county-09007 | Middlesex County, CT (former county) |
| us-county-09009 | New Haven County, CT (former county) |
| us-county-09011 | New London County, CT (former county) |
| us-county-09013 | Tolland County, CT (former county) |
| us-county-09015 | Windham County, CT (former county) |
Place names come from the shared location registry; see Sources.
Source and license
- Source
- NCHS Vital Statistics Rapid Release, Provisional County-Level Drug Overdose Death Counts (data.cdc.gov gb4e-yj24)
- Publisher
- CDC National Center for Health Statistics (NCHS)
- License
- US Government work (public domain in the United States) (
LicenseRef-US-Government-Work) - Commercial use
- Allowed
Credit the source with this exact text:
Ahmad FB, Cisewski JA, Anderson RN. Provisional county-level drug overdose death counts. National Center for Health Statistics. https://www.cdc.gov/nchs/nvss/vsrr/prov-county-drug-overdose.htm
Checked every 2 days. If the source hasn't changed in 2 months, the status page flags it as stale.
Endpoints
Every URL for this dataset. To pin the current version, put it after the id:
/v1/overdose-deaths-county@<version>.
The API reference describes each response.
| What | URL |
|---|---|
| Metadata: version, coverage, downloads, validation | /v1/overdose-deaths-county |
| Versions and monthly snapshots | /v1/overdose-deaths-county/versions |
| Series and locations | /v1/overdose-deaths-county/locations |
| All drug overdose deaths (JSON) | /v1/overdose-deaths-county/all-drugs/{location}.json |
| All drug overdose deaths (CSV) | /v1/overdose-deaths-county/all-drugs/{location}.csv |
| Whole dataset (CSV) | /v1/overdose-deaths-county/download/overdose-deaths-county.csv |
| Whole dataset (Parquet) | /v1/overdose-deaths-county/download/overdose-deaths-county.parquet |