For a number of codes found in the National Drug Code directory the API returns code not found. https://www.accessdata.fda.gov/scripts/cder/ndc/index.cfm

I have reviewed the API documentation and tried building a number of queries to try and look up information about a drug given the package ndc. all return a code:"Not_Found" error.

Here's a list of a few different api calls I have tried.





I have tried removing the hyphens, putting the search field in quotes, and adding a limit at the end with an &

Can anyone advise on how to get information about a drug with the API by ndc code?


The correct URL to get the NDC record is this. Please note that package_ndc is a sub-field of the top-level packaging element.

The correct URL to get the label is this. Please note that package_ndc is a sub-field of the top-level openfda element.

You can determine correct path to the fields you need by looking at the "Searchable Fields" documentation on the openFDA website.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.