healthcare.dev docs
API referenceDatasets

List record keys

GET /v1/datasets/{dataset}/keys

GET https://api.healthcare.dev/v1/datasets/{dataset}/keys

Keys of the records in a dataset's published version, in key order, for building indexes and sitemaps. Keys are the stored form (for codes: uppercase, no dot, so E119 is E11.9). Retired and replaced records are left out unless include_retired=true; with it, the count matches the release's records in /v1/datasets/{dataset}/releases. Page with cursor (from links.next), or jump to a position with offset.

Requires an API key: Authorization: Bearer hdev_live_.... See Authentication.

Path parameters

NameTypeRequiredDescriptionExample
datasetstringyesDataset id from /v1/datasetsicd10cm

Query parameters

NameTypeRequiredDescriptionExample
limitintegernoPage size, 1 to 10,000 (default 1000)1000
cursorstringnoOpaque cursor from links.next
offsetinteger | nullnoSkip this many keys first (ignored with cursor)0
include_retired"true" | "false"noAlso list retired and replaced records (default false)true

Examples

curl

curl "https://api.healthcare.dev/v1/datasets/icd10cm/keys?limit=1000" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/datasets/icd10cm/keys?limit=1000", {
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}` },
});
const { data, meta } = await res.json();

Python

import os
import requests

res = requests.get("https://api.healthcare.dev/v1/datasets/icd10cm/keys?limit=1000", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/datasets/icd10cm/keys?limit=1000&offset=0&include_retired=true
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/datasets/icd10cm/keys?limit=1000&offset=0&include_retired=true" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

Keys, in key order

{
  "data": [
    "string"
  ],
  "meta": {
    "source": "cms-icd10",
    "data_version": "2026.1",
    "retrieved_at": "2026-10-24T12:00:00Z",
    "license": "Public domain (CMS). Reference data, not medical advice."
  },
  "links": {
    "self": "/v1/datasets/icd10cm/keys?limit=1000",
    "next": "/v1/datasets/icd10cm/keys?limit=1000&cursor=eyJrIjoiRTExLjkifQ"
  }
}

Errors

Errors are application/problem+json (RFC 9457). Branch on type, not on title. See Errors.

StatustypeWhen
400invalid-requestA parameter or the body failed validation; errors lists each field.
401unauthorizedMissing, malformed or revoked API key.
404not-foundNo record with that id (retired records are still returned).
429rate-limited / quota-exceededToo many requests per second (retry after Retry-After), or the monthly quota is used up.
503dataset-unavailable / unavailableThe dataset has no published version yet, or the service is degraded.

On this page