If you maintain a formulary, a pharmacy inventory app, or a medication list, you eventually need to answer a plain question: has the FDA recalled this product? The data is public in openFDA's enforcement reports, but drug and device records have different fields, and the NDC (National Drug Code) isn't always filled in. A recall can list product codes in an array, in the description text, or not at all.
This post uses the Drug & Device Recall Monitor API from Wryborg, which puts both kinds of recall into one schema and lets you filter on ndc directly. We'll check a short NDC list from Python.
The records are derived from FDA openFDA enforcement reports. They can be delayed or incomplete, and this is not medical or regulatory advice.…