healthcare.dev docs
API referenceCare categories

Care category taxonomy

GET /v1/care-categories

GET https://api.healthcare.dev/v1/care-categories

Every plain-English care category ("Knee replacement", "Diabetes supplies"), top-level groups first, each with its parent, path and children. ICD-10-CM, ICD-10-PCS, HCPCS Level II and NDC records carry their categories on lookups (care_categories). Filter with q (words in the name). On every plan.

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

Query parameters

NameTypeRequiredDescriptionExample
qstringnoOnly categories whose name contains every worddiabetes
view"compact" | "standard" | "full"noHow much of each record to return (default full). compact: slug, name, parent (fewest tokens, for agents). standard: every field except description. full: every field.compact
fieldsstringnoComma-separated fields to return instead of a view. Valid fields: slug, name, description, parent, path, children.slug,name,parent

Examples

curl

curl "https://api.healthcare.dev/v1/care-categories?q=diabetes" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/care-categories?q=diabetes", {
  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/care-categories?q=diabetes", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/care-categories?q=diabetes&view=compact&fields=slug%2Cname%2Cparent
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/care-categories?q=diabetes&view=compact&fields=slug%2Cname%2Cparent" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

Categories in taxonomy order

{
  "data": [
    {
      "slug": "string",
      "name": "string",
      "description": "string",
      "parent": "string",
      "path": [
        "string"
      ],
      "children": [
        "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/care-categories?q=diabetes",
    "next": "/v1/care-categories?q=diabetes&cursor=eyJrIjoiRTExLjkifQ"
  }
}

Fields

FieldTypeAlways presentDescription
slugstringyesStable handle, e.g. knee-replacement
namestringyesPlain-English name, e.g. Knee replacement
descriptionstring | nullyesWhat the group covers (top-level groups only)
parentstring | nullyesParent's slug, or null for a top-level group
pathstring[]yesSlugs from the top-level group down to this category, e.g. ["bones-joints-and-muscles", "joint-replacement", "knee-replacement"]
childrenstring[]yesSlugs of the categories directly below this one

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