Get icon
Loop icon
Request icon
Query icon
If icon
Log icon
SlackIncomingWebhook icon
Set icon
Schedule icon

Monitor FDA Recalls of Drugs, Devices and Food with openFDA, DuckDB and Slack

Watch FDA recalls of drugs, devices and food for your suppliers with openFDA, alert on Class I recalls and get a weekly digest in Slack.

Categories
BusinessData

Watch the FDA's Enforcement Report for recalls by the companies you buy from, distribute or compete with, through the openFDA API. No API key needed at a weekly pace.

How it works

  1. weekly runs the flow every Thursday; FDA publishes the Enforcement Report on Wednesdays.
  2. each_type queries openFDA's drug, device and food enforcement endpoints for the watched firms and the lookback window (openFDA answers 404 when nothing matches, which counts as no recalls).
  3. recalls (DuckDB) keeps one row per recall number, groups the products of one recall event, and marks the recall numbers an earlier run already reported, read from the KV store.
  4. report logs new Class I recalls at WARN, logs a digest of new Class II and III recalls, posts both to Slack, and adds the new recall numbers to the KV store.

What you get

  • One line per recall event: firm, product type, recall numbers, status, product, reason, date.
  • Class I (reasonable probability of serious harm or death) alerts at WARN; Class II/III as a digest.
  • Each recall reported once, even if it stays in the lookback window or its status changes.

Who it's for

Pharmacy, hospital and retail procurement teams, quality and regulatory affairs, and supply-chain risk analysts.

Why orchestrate this with Kestra

The schedule, the HTTP calls, the dedupe state in the KV store and the alerts live in one versioned flow, and every run keeps its logs for audits.

Prerequisites

Kestra 2.0. openFDA allows 1,000 requests a day per IP address without a key.

Secrets

  • SLACK_WEBHOOK_URL (optional): without it the Slack step ends in a warning; recalls stay logged.

Quick start

  1. Set firms to company names as FDA writes them (a name matches any firm containing it).
  2. Execute with lookback_days set to 60, then check the logs; the first run reports everything in the window.
  3. Keep the weekly trigger; later runs report only new recalls.

How to extend

  • Watch products instead of firms: search product_description or openfda.brand_name.
  • Known limits: the Enforcement Report lists a recall once FDA classifies it, often weeks after the firm's own notice; to report everything again, delete the fda_recalls_alerted KV key.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.