← Back to all posts

OpenFDA

On this page

Purpose

OpenFDA queries six public drug datasets: Drug Labels, NDC Directory, Drugs@FDA, Drug Recalls, Drug Shortages, and Drug Adverse Events. It returns normalized records for the selected dataset.

It does not make medical-care decisions, prove that a drug caused a reported event, calculate incidence, or expose every FDA dataset.

When to use it

  • Read a label's boxed warning, indications, dosing, or adverse reactions.
  • Look up NDC products, packages, routes, and active ingredients.
  • Review approvals, recalls, or shortage records.
  • Inspect reported adverse events while keeping the limits of FAERS data clear.

Required setup

OpenFDA uses public FDA endpoints and requires no account, OAuth connection, or component API key.

How to use it

In Tool Mode:

  1. Connect the component's tools to Agent Core.
  2. Give the Agent a focused task and name the relevant dataset when it matters.
  3. Start with a drug or ingredient query and a limit of 3 results.
  4. Review the returned records before drawing a safety or clinical conclusion.

For example, ask the Agent to retrieve the boxed warning from a drug label, not to decide whether a patient should take the drug.

In Normal mode:

  1. Select the dataset under Action.
  2. Enter a drug or ingredient query and choose the matching Search Field.
  3. Keep Top Results at 3 for the first run.
  4. Connect the result to Data Operations.

Drug Labels can search from Product Type or Boxed Warning Only when Query is empty.

Configuration

SettingWhat it controlsRecommended starting point
ActionThe openFDA dataset to queryPick the dataset that answers the question
QueryDrug, ingredient, identifier, company, or reaction search textStart with a drug or ingredient
Search FieldThe provider field used for the queryKeep the action-specific default
Top ResultsThe returned record countStart with 3; the range is 1 to 10
Product TypePrescription or OTC label filterKeep Any unless product class matters
Boxed Warning OnlyLabel filterEnable only for boxed-warning research
Finished Products OnlyNDC filterEnable to exclude unfinished products
Serious Reports OnlyAdverse-event filterUse for narrower review, not a causation conclusion

Expected result

Each result includes the selected endpoint, search details, provider metadata, result count, and normalized matches. A no-match response becomes an empty result.

Long label sections stop at 4,000 characters. Drugs@FDA includes up to five products and five submissions per record. Adverse-event results include up to ten reactions and five patient-drug entries.

Reference details

Change Search Field when an identifier, sponsor, firm, reaction, or another dataset-specific field is more precise than a generic drug name.

Use Data Operations to filter normalized records. Type Convert can adapt a result to Message or DataFrame.

← Back to all posts