# FDA NDC Directory Lookup

> FDA NDC Directory Lookup is a paid API for AI agents from agent-utils-x402-production.revenue-agent-jw.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-18).

Looks up FDA National Drug Code (NDC) directory information by NDC code or drug name via openFDA, returning product details, ingredients, packaging, and scheduling.

## Facts

- Endpoint: GET https://agent-utils-x402-production.revenue-agent-jw.workers.dev/v1/fda/ndc?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fda-ndc-directory-lookup-bcd4840e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nnnSwzQ-JWyotjeNtM2bW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fda-ndc-directory-lookup-bcd4840e
```

Example prompt: Can you look up the FDA NDC details for Lipitor with NDC code 58151-155? I need the brand name, active ingredients with strengths, DEA schedule, labeler, and dosage form.

## When to prefer this

Use this endpoint when you need authoritative FDA drug product metadata — including active ingredients, DEA schedule, labeler, dosage form, and packaging — by NDC code or drug name. It is ideal for pharmacy claims validation, drug inventory enrichment, and regulatory compliance checks. Prefer this over general web search when you need structured, machine-readable FDA NDC directory data with reliable field coverage, including DailyMed linkage.

## Known failure modes

- 400 Bad Request: input NDC format is invalid or required parameters are missing
- 404 Not Found: no drug product matches the given NDC or name
- Ambiguous name results: common generic names may return multiple products requiring further filtering
- Rate or payment failure: x402 payment not processed, request blocked

## How this service works

FDA National Drug Code (NDC) directory lookup via openFDA by product or package NDC (dashed, or 10/11-digit billing format) or by drug name. Useful for pharmacy, claims and inventory data. Returns product NDC, brand and generic names, labeler, dosage form, route, active ingredients and strengths, marketing category and dates, application number, DEA schedule and packages, with DailyMed link and retrievedAt. Errors: 400 invalid input, 404 no match.

## Output

Returns a list of matching drug products, each with product NDC, brand name, generic name, labeler, dosage form, route of administration, active ingredients with strengths, marketing category, marketing start/end dates, application number, DEA schedule, package details, a DailyMed link, and a retrievedAt timestamp. Returns HTTP 400 for invalid input and 404 when no matching drug is found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "ndc": {
       "type": "string",
       "description": "product NDC (58151-155), package NDC (58151-155-77) or 11-digit (58151015577)"
      },
      "name": {
       "type": "string",
       "description": "brand or generic name"
      },
      "limit": {
       "type": "integer",
       "maximum": 25,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "labeler": "Viatris Specialty LLC",
    "brandName": "Lipitor",
    "productNdc": "58151-155",
    "activeIngredients": [
     {
      "name": "ATORVASTATIN CALCIUM TRIHYDRATE",
      "strength": "10 mg/1"
     }
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fda-ndc-directory-lookup-bcd4840e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-utils-x402-production.revenue-agent-jw.workers.dev](https://www.zero.xyz/host/agent-utils-x402-production.revenue-agent-jw.workers.dev/llms.txt)
