# Look up an NDC

URL: https://docs.healthcare.dev/reference/drugs/look-up-an-ndc

```http
GET https://api.healthcare.dev/v1/drugs/ndc/{ndc}
```

Accepts a product NDC (`0002-0152`), a package NDC in any 10-digit layout (`0002-0152-01`) or an 11-digit NDC (`00002015201`). Returns the FDA product with its packages (each normalized to NDC-11) and the linked RxNorm concepts (`rxcuis`).

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

## Path parameters

| Name | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `ndc` | string | yes | Product, package (any 10-digit layout) or 11-digit NDC, with or without hyphens | `0002-0152-01` |

## 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` |

## Examples

**curl**

```sh
curl "https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01" \
  -H "Authorization: Bearer $HDEV_API_KEY"
```

**TypeScript**

```ts
const res = await fetch("https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01", {
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}` },
});
const { data, meta } = await res.json();
```

**Python**

```python
import os
import requests

res = requests.get("https://api.healthcare.dev/v1/drugs/ndc/0002-0152-01", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()
```

## Response

The product

```json
{
  "data": {
    "product_ndc": "0002-0152",
    "spl_document_ids": [
      "a5dba1a3-f7f7-4b8d-b9f1-a09dcdc1b2fc"
    ],
    "brand_name": "Zepbound",
    "generic_name": "tirzepatide",
    "labeler": "Eli Lilly and Company",
    "dosage_form": "INJECTION, SOLUTION",
    "route": [
      "SUBCUTANEOUS"
    ],
    "active_ingredients": [
      {
        "name": "TIRZEPATIDE",
        "strength": "2.5 mg/.5mL"
      }
    ],
    "product_type": "HUMAN PRESCRIPTION DRUG",
    "marketing_category": "NDA",
    "application_number": "NDA217806",
    "pharm_classes": [
      "GLP-1 Receptor Agonist [EPC]"
    ],
    "dea_schedule": null,
    "listing_certified_through": "2027-12-31",
    "rxcuis": [
      "2679323"
    ],
    "rxnorm": [
      {
        "rxcui": "2679323",
        "name": "0.5 ML tirzepatide 5 MG/ML Injection [Zepbound]",
        "tty": "SBD"
      }
    ],
    "packages": [
      {
        "ndc": "0002-0152-01",
        "ndc11": "00002015201",
        "description": "1 VIAL, SINGLE-DOSE in 1 CARTON (0002-0152-01)  / .5 mL in 1 VIAL, SINGLE-DOSE",
        "marketing_start": "2024-03-28",
        "marketing_end": null
      }
    ],
    "status": "active",
    "effective_start": "2024-03-28",
    "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/drugs/ndc/0002-0152-01",
    "next": null
  }
}
```

### Fields

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `product_ndc` | string | yes |  |
| `spl_document_ids` | string[] | yes | SPL documents listing this product (FDA PRODUCTID suffixes) |
| `brand_name` | string \| null | yes |  |
| `generic_name` | string \| null | yes |  |
| `labeler` | string | yes |  |
| `dosage_form` | string \| null | yes |  |
| `route` | string[] | yes |  |
| `active_ingredients` | object[] | yes |  |
| `product_type` | string | yes |  |
| `marketing_category` | string \| null | yes |  |
| `application_number` | string \| null | yes |  |
| `pharm_classes` | string[] | yes |  |
| `dea_schedule` | string \| null | yes |  |
| `listing_certified_through` | string \| null (date) | yes |  |
| `rxcuis` | string[] | no | Linked RxNorm concepts (filled at query time) |
| `rxnorm` | object[] | no | Linked RxNorm concepts with names and term types (filled at query time) |
| `packages` | NdcPackage[] | yes |  |
| `status` | "active" \| "retired" \| "replaced" | yes |  |
| `effective_start` | string (date) | yes |  |
| `effective_end` | string \| null (date) | yes |  |
| `replaced_by` | string[] | no |  |

## 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. |
