openFDA Drug NDC Directory Scraper avatar

openFDA Drug NDC Directory Scraper

Pricing

from $12.00 / 1,000 result items

Go to Apify Store
openFDA Drug NDC Directory Scraper

openFDA Drug NDC Directory Scraper

Export the National Drug Code (NDC) Directory from openFDA. Search 135k+ marketed products by NDC, brand name, generic name, or manufacturer. Pull product NDC, labeler, dosage form, route, active ingredients, packaging, and pharm class.

Pricing

from $12.00 / 1,000 result items

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

ParseForge Banner

๐Ÿท๏ธ openFDA Drug NDC Directory Scraper

๐Ÿš€ Export the official FDA National Drug Code directory in seconds. Pull 140,000+ marketed drug products filtered by NDC, brand, generic name, manufacturer, or product type. No login, no daily quota juggling, no schema guesswork.

๐Ÿ•’ Last updated: 2026-05-22 ยท ๐Ÿ“Š 28 fields per record ยท ๐Ÿ’Š 140,000+ products ยท ๐Ÿท๏ธ NDC, RxCUI, UNII ยท ๐Ÿญ thousands of labelers

The openFDA Drug NDC Directory Scraper exports the National Drug Code (NDC) Directory and returns 28 fields per record, including product NDC, brand and generic names, labeler, dosage form, route, active ingredients with strength, packaging, pharmacologic class, and cross-reference identifiers such as RxCUI, UNII, and SPL. The NDC directory is the canonical reference for every drug marketed in the United States.

The catalog covers prescription drugs, over-the-counter drugs, vaccines, bulk ingredients, plasma derivatives, and allergenics. This Actor turns the live directory into a downloadable dataset as CSV, Excel, JSON, or XML in under five minutes. Filtering happens at source, so you skip the paging and field-name spelunking entirely.

๐ŸŽฏ Target Audience๐Ÿ’ก Primary Use Cases
Pharmacy IT, healthcare apps, EHR vendors, formulary teams, drug-data engineers, claims-processing teams, telehealth platformsDrug autocomplete, NDC-to-RxCUI mappings, label lookups, formulary builds, OTC vs Rx classification, dosage and route reference data, claims edits

๐Ÿ“‹ What the openFDA Drug NDC Directory Scraper does

Five filtering workflows in a single run:

  • ๐Ÿท๏ธ NDC filter. Pull one product by exact NDC code, e.g. 80489-001.
  • ๐Ÿท๏ธ Brand filter. Restrict to a brand (proprietary) name, e.g. Tylenol, Lipitor.
  • ๐Ÿ’Š Generic filter. Restrict to a generic (non-proprietary) name, e.g. acetaminophen, atorvastatin.
  • ๐Ÿญ Manufacturer filter. Substring match on the labeler or manufacturer company name.
  • ๐Ÿ—‚๏ธ Product-type filter. Prescription drug, OTC drug, vaccine, bulk ingredient, plasma derivative, cellular therapy, or allergenic.

Each record includes the product NDC and ID, brand name (and brand-name base), generic name, labeler and manufacturer, dosage form, route, marketing category, application number, active ingredients with strength, packaging breakdown, pharmacologic class (broad + EPC + PE), and RxCUI / UNII / NUI cross-reference codes.

๐Ÿ’ก Why it matters: clean NDC reference data is the foundation of every safe prescribing workflow. Building your own parser means handling the directory format, ingredient strength parsing, and packaging hierarchies. This Actor skips that work and keeps the dataset fresh on every run.


๐ŸŽฌ Full Demo

๐Ÿšง Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded NDC directory feed.


โš™๏ธ Input

InputTypeDefaultBehavior
maxItemsinteger10Records to return. Free plan caps at 10, paid plan at 1,000,000.
productNdcstring""Exact product NDC, e.g. 80489-001.
brandNamestring""Brand (proprietary) name, e.g. Tylenol.
genericNamestring""Generic (non-proprietary) name, e.g. acetaminophen.
manufacturerstring""Manufacturer or labeler company (substring).
productTypestring""One of 8 FDA product types. Empty = any.

Example: 200 OTC products from Johnson & Johnson.

{
"maxItems": 200,
"manufacturer": "Johnson",
"productType": "HUMAN OTC DRUG"
}

Example: every Lipitor formulation.

{
"maxItems": 100,
"brandName": "Lipitor"
}

โš ๏ธ Good to Know: the NDC directory is the listing source, not a real-time inventory. A product appearing here means the labeler reported it to the FDA, but it may or may not be in active distribution.


๐Ÿ“Š Output

Each NDC record contains 28 fields. Download the dataset as CSV, Excel, JSON, or XML.

๐Ÿงพ Schema

FieldTypeExample
๐Ÿ†” productNdcstring"50580-449"
๐Ÿ†” productIdstring"50580-449_a1b2c3d4-..."
๐Ÿท๏ธ brandNamestring"TYLENOL EXTRA STRENGTH"
๐Ÿท๏ธ brandNameBasestring"TYLENOL"
๐Ÿ’Š genericNamestring"ACETAMINOPHEN"
๐Ÿญ labelerNamestring"Johnson & Johnson Consumer Inc."
๐Ÿญ manufacturerNamearray | null["Johnson & Johnson Consumer Inc."]
๐Ÿ—‚๏ธ productTypestring"HUMAN OTC DRUG"
๐Ÿ’‰ dosageFormstring"TABLET"
๐Ÿšช routearray["ORAL"]
๐Ÿ›๏ธ marketingCategorystring"OTC monograph not final"
๐Ÿ”ข applicationNumberstring | null"part343"
๐Ÿงช activeIngredientsarray[{"name": "ACETAMINOPHEN", "strength": "500 mg/1"}]
๐Ÿ’Š pharmClassarray | null["Anti-inflammatory Agents, Non-Steroidal [Chemical/Ingredient]"]
๐Ÿ’Š pharmClassEpcarray | null[]
๐Ÿ’Š pharmClassPearray | null[]
๐Ÿ“ฆ packagingarray[{"package_ndc": "50580-449-30", "description": "30 in 1 BOTTLE"}]
๐Ÿ“… marketingStartDatestring"20100401"
๐Ÿ“… listingExpirationDatestring | null"20261231"
๐Ÿ†” splIdstring"a1b2c3d4-..."
๐Ÿ†” splSetIdstring"e5f6g7h8-..."
๐Ÿ”— rxcuiarray | null["198440"]
๐Ÿ”— uniiarray | null["362O9ITL9D"]
๐Ÿ”— nuiarray | null["N0000175722"]
โœ… finishedbooleantrue
๐Ÿ•’ scrapedAtISO 8601"2026-05-22T00:00:00.000Z"
โš ๏ธ errorstring | nullnull

๐Ÿ“ฆ Sample records


โœจ Why choose this Actor

Capability
๐Ÿท๏ธFull NDC catalog. 140,000+ marketed drug products with brand, generic, and labeler metadata.
๐ŸŽฏMulti-dimensional filtering. NDC, brand, generic, manufacturer, and product type compose freely in one run.
๐Ÿ”—Cross-reference codes. RxCUI, UNII, NUI, SPL on every record for joins with formularies and clinical knowledge bases.
๐ŸงชActive ingredients with strength. Ready for dosage-checking and DDI workflows.
โšกFast. 10 products in under 5 seconds, 10,000 in under five minutes.
๐Ÿ”Always fresh. Every run pulls the live directory published by the FDA.
๐ŸšซNo authentication. Works with the public openFDA dataset. No token or quota required from you.

๐Ÿ“Š NDC reference data is the foundation of every modern e-prescribing, claims, and formulary system.


๐Ÿ“ˆ How it compares to alternatives

ApproachCostCoverageRefreshFiltersSetup
โญ openFDA Drug NDC Directory Scraper (this Actor)$5 free credit, then pay-per-use140,000+ productsLive per runNDC, brand, generic, manufacturer, typeโšก 2 min
Commercial drug-data subscriptions$50k+/year per seatCurated, scoredDailyManyโณ Weeks
Manual quarterly NDC downloadsFreeBulk onlyQuarterlyLocal parsing๐Ÿข Days
Building your own ingestionEngineering costBrittleBreaks on schema driftCustom๐Ÿ•’ Weeks

Pick this Actor when you want clean structured NDC records, server-side filters, and zero pipeline maintenance.


๐Ÿš€ How to use

  1. ๐Ÿ“ Sign up. Create a free account with $5 credit (takes 2 minutes).
  2. ๐ŸŒ Open the Actor. Go to the openFDA Drug NDC Directory Scraper page on the Apify Store.
  3. ๐ŸŽฏ Set input. Pick an NDC, brand, generic, manufacturer, or product type, and set maxItems.
  4. ๐Ÿš€ Run it. Click Start and let the Actor collect your data.
  5. ๐Ÿ“ฅ Download. Grab your results in the Dataset tab as CSV, Excel, JSON, or XML.

โฑ๏ธ Total time from signup to downloaded dataset: 3-5 minutes. No coding required.


๐Ÿ’ผ Business use cases

๐Ÿ’Š Pharmacy and formulary teams

  • Build a master formulary with current NDCs
  • OTC vs prescription classification at scale
  • Identify discontinued products by listing expiry
  • Cross-reference labelers for sourcing decisions

๐Ÿฉบ EHR and e-prescribing platforms

  • Power drug-name autocomplete with verified brand and generic strings
  • Map NDC to RxCUI for clinical decision-support joins
  • Display dosage form and route on the prescribing screen
  • Surface pharmacologic class for category-based alerts

๐Ÿ’ผ Claims and revenue cycle

  • Validate NDC submissions against the live directory
  • Build edits for missing or invalid NDC codes
  • Track new product launches by labeler
  • Compare brand vs generic NDC families

๐Ÿค– AI and product teams

  • Train drug-mention NER models with verified names
  • Power chat-based medication lookups
  • Feed a search index with structured ingredient data
  • Benchmark LLM drug classification against the source

๐Ÿ”Œ Automating openFDA Drug NDC Directory Scraper

Control the scraper programmatically for scheduled runs and pipeline integrations:

  • ๐ŸŸข Node.js. Install the apify-client NPM package.
  • ๐Ÿ Python. Use the apify-client PyPI package.
  • ๐Ÿ“š See the Apify API documentation for full details.

The Apify Schedules feature lets you trigger this Actor on any cron interval. Weekly or monthly refreshes keep downstream formularies in sync automatically.


๐ŸŒŸ Beyond business use cases

Data like this powers more than commercial workflows. The same structured records support research, education, civic projects, and personal initiatives.

๐ŸŽ“ Research and academia

  • Drug-utilization research on marketed products
  • Pharmacy coursework on NDC structure and labeling
  • Theses on generic-substitution patterns
  • Open-data classroom exercises on reference catalogs

๐ŸŽจ Personal and creative

  • Personal medication dashboards
  • Patient-education content on brand vs generic
  • Hobby data-viz of new launches per labeler
  • Caregiver tools for tracking dosage forms

๐Ÿค Non-profit and civic

  • Free drug-lookup tools for community clinics
  • Investigative reporting on labeler concentration
  • Public-health dashboards for OTC availability
  • Patient-advocacy guides built on canonical data

๐Ÿงช Experimentation

  • Train classifiers that infer product type from labels
  • Prototype agents that summarize a drug profile
  • Build LLM tools that resolve free-text to NDC
  • Validate medication-NLP pipelines against real records

๐Ÿค– Ask an AI assistant about this scraper

Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:


โ“ Frequently Asked Questions

๐Ÿงฉ How does it work?

Set an NDC, brand, generic, manufacturer, or product type in the input form, click Start, and the Actor queries the official FDA drug catalog and emits a clean structured record per product. No browser automation, no captchas, no setup.

๐Ÿ“ How accurate is the data?

The dataset is sourced directly from the FDA NDC Directory and reflects what labelers have submitted. Listings can drift if a product is discontinued without an immediate update, so use the listingExpirationDate field as a freshness check.

๐Ÿ” How often is the dataset refreshed?

The FDA refreshes the directory on an ongoing basis. Every run of this Actor fetches the latest data, so your output reflects current records as of run time.

๐Ÿ”— What cross-reference identifiers are included?

RxCUI (RxNorm), UNII (substance), NUI (NDF-RT pharmacologic class), SPL set ID, and the FDA application number when available.

๐Ÿ’‰ Are vaccines and biologics included?

Yes. Set productType to VACCINE, PLASMA DERIVATIVE, or CELLULAR THERAPY to scope the result set.

โฐ Can I schedule regular runs?

Yes. Use Apify Schedules to run this Actor on any cron interval (weekly, monthly) and keep a downstream formulary in sync.

Yes. The NDC Directory is published by the U.S. FDA under a permissive open-data policy. Review downstream regulatory requirements for your specific use case.

๐Ÿ’ผ Can I use this data commercially?

Yes. Open FDA records are publicly available for commercial reuse. You are responsible for any downstream regulatory or labeling obligations.

๐Ÿ’ณ Do I need a paid Apify plan to use this Actor?

No. The free Apify plan is enough for testing and small runs (10 records per run). A paid plan lifts the limit and gives you access to scheduling, higher concurrency, and larger datasets.

๐Ÿ” What happens if a run fails or gets interrupted?

Apify automatically retries transient errors. If a run still fails, you can inspect the log in the Runs tab, fix the input, and re-run. Partial datasets from failed runs are preserved so you never lose progress.

๐Ÿ†˜ What if I need help?

Our support team is here to help. Contact us through the Apify platform or use the Tally form linked below.


๐Ÿ”Œ Integrate with any app

openFDA Drug NDC Directory Scraper connects to any cloud service via Apify integrations:

  • Make - Automate multi-step workflows
  • Zapier - Connect with 5,000+ apps
  • Slack - Get run notifications in your channels
  • Airbyte - Pipe NDC data into your warehouse
  • GitHub - Trigger runs from commits and releases
  • Google Drive - Export datasets straight to Sheets

You can also use webhooks to trigger downstream actions when a run finishes. Push fresh NDC data into your e-prescribing system, or alert your team in Slack on new launches.


๐Ÿ’ก Pro Tip: browse the complete ParseForge collection for more healthcare and life-sciences scrapers.


๐Ÿ†˜ Need Help? Open our contact form to request a new scraper, propose a custom data project, or report an issue.


โš ๏ธ Disclaimer: this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the U.S. Food and Drug Administration. All trademarks mentioned are the property of their respective owners. Only publicly available openFDA records are collected.