Look up a drug
Name search uses the start of the drug, brand, or generic name. NDC lookup accepts 11 digits or a hyphenated FDA code.
Query the files
There is no per-NDC file. About 30,000 of those would pass the Cloudflare Pages free limit of 20,000 files. Each response is a shard named with the first 7 digits of the 11-digit NDC. Read your NDC out of that object.
| URL | What you get |
|---|---|
/v1/ndc/{first7}.json | Object keyed by 11-digit NDC. Example: /v1/ndc/0059104.json |
/v1/search/{aa}.json | Name index for drugs, brands, or generics that start with those two characters. |
/v1/search/index.json.gz | The same index, one gzip file, for a bulk load. |
/v1/snapshot/nadac-latest.json.gz | Every current NDC, including history. |
/v1/snapshot/nadac-latest.csv.gz | The same snapshot as CSV. History is a JSON column. |
/v1/changes.json | NDCs whose price changed, or that were added or removed, in the latest CMS week. |
/v1/meta.json | As-of date, dataset ids, catalog modified times, row counts, match stats, build time. |
/v1/shards.json | The list of 7-digit prefixes that exist. |
/nadac-client.js | A small browser client. Nadac.getNdc("00002-0152-01") normalizes the code and fetches the shard. |
Sample requests
curl -s https://nadac-api.pages.dev/v1/ndc/0059104.json | jq '."00591040701" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0009331.json | jq '."00093310905" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0000214.json | jq '."00002143380" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0000934.json | jq '."00009344801" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0000214.json | jq '."00002143601" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0003702.json | jq '."00037024523" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
curl -s https://nadac-api.pages.dev/v1/ndc/0000311.json | jq '."00003110001" | {drug_name, nadac_per_unit, pack_size, package_price, match_status}'
Replace the host with your Pages hostname. The reference server at this site also answers /v1/ndc/{11 digits}.json by reading the shard for you. Pages itself does not, because a rewrite like that would be a Function, and Functions draw on the Workers free quota. Use the shard URL or nadac-client.js.
Rows from this build
| NDC | Name | NADAC | Pack | Status |
|---|---|---|---|---|
00591040701 | LISINOPRIL 10 MG TABLET | $0.01806 / EA | 100 tablet | matched |
00093310905 | AMOXICILLIN 500 MG CAPSULE | $0.07753 / EA | 500 capsule | matched |
00002143380 | TRULICITY 0.75 MG/0.5 ML PEN | $487.68295 / ML | 2 mL | matched |
00009344801 | CLEOCIN 2% VAGINAL CREAM | $1.79204 / GM | 40 g | matched |
00002143601 | EMGALITY 120 MG/ML PEN | $734.12757 / ML | 1 mL | inner_package |
00037024523 | DYMISTA NASAL SPRAY | $9.09447 / GM | null | unit_mismatch |
00003110001 | COBENFY 100 MG-20 MG CAPSULE | $30.1442 / EA | null | no_fda_match |
99.1% of NDCs match an FDA package. 98.3% have a pack size in the NADAC pricing unit. Pack size is null when FDA has no package, or when the package unit does not agree with the NADAC unit (EA, ML, or GM). A unit-dose repackager NDC that exists only as an inner package uses that inner count, sets match_status to inner_package, and keeps the outer package description.
Package price is nadac_per_unit times pack_size, and it is present only when the pack size is.
History
Each NDC carries price changes for about 12 months. Weeks that repeat the same price are omitted. One earlier price is kept when it was already in effect at the start of the window, so you can see what the price was then.
Disclaimer
Prices and package facts are reproduced from the CMS National Average Drug Acquisition Cost files and the FDA NDC Directory. Both are United States government works and are in the public domain. This API is not produced, approved, or endorsed by CMS, the FDA, or the Department of Health and Human Services.
NADAC is an average of surveyed pharmacy invoice prices. It is not a retail offer, not a quote, and not a guarantee of what a pharmacy paid. FDA listing data is submitted by the labeler. Inclusion in the NDC Directory does not mean FDA approved the product. Do not use this feed as the sole basis for a clinical, dispensing, or coverage decision.
Sources:
- NADAC 2025 (catalog modified 2025-12-30T15:25:00Z)
- NADAC 2026 (catalog modified 2026-11-20T14:26:02Z)
- Medicaid retail price survey (NADAC)
- FDA NDC Directory
- U.S. public domain notice
Built 2026-11-30T12:26:35Z. CORS allows any origin. Static files are cached; meta.json is cached for a few minutes.