Would someone be able to guide me on how to create the right query to find a pill's metadata based on NHC.

Here the combinations I tried but all return no results.

Identifier: 51285-0092-87_BE305F72

https://api.fda.gov/drug/ndc.json?search=product_id:"51285-0092" https://api.fda.gov/drug/ndc.json?search=product_ndc:"51285-0092" https://api.fda.gov/drug/ndc.json?search=packaging.package_ndc:"51285-0092"

I also tried versions with the "-87" with no luck. Any help offered would be appreciated.

1 Answer 1


You just have an extra 0 within the NDC code. Here is the right query:


  • By chance, is there a way that you knew this? I am trying to pragmatically account for this as I have a 4K pills that return nothing when I use the FDA api. Here are a few more examples in case it helps too: 00093-0148-01, 00093-7248-06 . I have been reading this to learn the structure of NDC code too: drugs.com/ndc.html
    – AlifUnseen
    Jan 30 at 4:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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