# Look up up to 100 codes

URL: https://docs.healthcare.dev/reference/codes/look-up-up-to-100-codes

```http
POST https://api.healthcare.dev/v1/codes/{system}/batch
```

Looks up many codes in one request. Results come back in request order; unknown codes have `found: false`.

Requires an API key: `Authorization: Bearer hdev_live_...`. See [Authentication](/authentication).

## Path parameters

| Name | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `system` | "icd10cm" \| "icd10pcs" \| "hcpcs" | yes | Code system | `icd10cm` |

## Query parameters

| Name | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `view` | "compact" \| "full" | no | `compact` returns only the fields an agent usually needs (fewer tokens); `full` (default) returns every field | `compact` |
| `fields` | string | no | Comma-separated record fields to return, e.g. `code,display,billable` | `code,display,billable` |

## Request body

```json
{
  "codes": [
    "E11.9",
    "I10"
  ]
}
```

## Examples

**curl**

```sh
curl -X POST "https://api.healthcare.dev/v1/codes/icd10cm/batch" \
  -H "Authorization: Bearer $HDEV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"codes":["E11.9","I10"]}'
```

**TypeScript**

```ts
const res = await fetch("https://api.healthcare.dev/v1/codes/icd10cm/batch", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({"codes":["E11.9","I10"]}),
});
const { data, meta } = await res.json();
```

**Python**

```python
import os
import requests

res = requests.post("https://api.healthcare.dev/v1/codes/icd10cm/batch", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"}, json={"codes":["E11.9","I10"]})
body = res.json()
```

## Response

Results in request order

```json
{
  "data": [
    {
      "code": "E11.9",
      "found": true,
      "record": {
        "system": "icd10cm",
        "code": "E11.9",
        "display": "Type 2 diabetes mellitus without complications",
        "description": "Type 2 diabetes mellitus without complications",
        "billable": true,
        "parent": "E11",
        "attributes": {},
        "status": "active",
        "effective_start": "2015-10-01",
        "effective_end": null,
        "replaced_by": []
      }
    }
  ],
  "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/codes/icd10cm/batch",
    "next": "/v1/codes/icd10cm/batch?cursor=eyJrIjoiRTExLjkifQ"
  }
}
```

### Fields

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `code` | string | yes |  |
| `found` | boolean | yes |  |
| `record` |  | yes |  |

## Errors

Errors are `application/problem+json` ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)). Branch on `type`, not on `title`. See [Errors](/errors).

| Status | `type` | When |
| --- | --- | --- |
| 400 | `invalid-request` | A parameter or the body failed validation; `errors` lists each field. |
| 401 | `unauthorized` | Missing, malformed or revoked API key. |
| 404 | `not-found` | No record with that id (retired records are still returned). |
| 429 | `rate-limited / quota-exceeded` | Too many requests per second (retry after `Retry-After`), or the monthly quota is used up. |
| 503 | `dataset-unavailable / unavailable` | The dataset has no published version yet, or the service is degraded. |
