{
  "openapi": "3.0.1",
  "info": {
    "title": "US FDA Recall, Drug NDC & 510(k) Device Monitor",
    "description": "Screen drug NDCs, 510(k) medical devices, or monitor live Class I-III recalls across openFDA Drug NDC, 510(k), Enforcement, and NIH RxNorm APIs. Built for MCP AI agents and scheduled Make, n8n, and Zapier healthcare and supply-chain compliance workflows.",
    "version": "0.0",
    "x-build-id": "TGVuJS5Nk8qkR9E7M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nathel-enterprise~us-fda-recall-ndc-device-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nathel-enterprise-us-fda-recall-ndc-device-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nathel-enterprise~us-fda-recall-ndc-device-monitor/runs": {
      "post": {
        "operationId": "runs-sync-nathel-enterprise-us-fda-recall-ndc-device-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nathel-enterprise~us-fda-recall-ndc-device-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-nathel-enterprise-us-fda-recall-ndc-device-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "fdaIdentifiers": {
            "title": "Drug NDCs, 510(k) K-Numbers or Recall IDs (Batch Verification Mode)",
            "maxItems": 500,
            "type": "array",
            "description": "Optional list of US Drug NDC codes (for example '0573-0134' or 10/11-digit NDCs), FDA 510(k)/De Novo device numbers (for example 'K250507', 'DEN200042'), or FDA Enforcement Recall numbers ('Z-0152-2027', 'D-0100-2026'). Up to 500 per run on paid plans; 25-record preview on Free plans. Leave empty to use Feed & Discovery filters below.",
            "items": {
              "type": "string"
            }
          },
          "domainFilter": {
            "title": "FDA Registry / Recall Feed Type (Discovery Mode)",
            "enum": [
              "ALL_RECALLS",
              "DRUG_RECALLS",
              "DEVICE_RECALLS",
              "FOOD_RECALLS",
              "DRUG_NDC_DIRECTORY",
              "DEVICE_510K_CLEARANCES"
            ],
            "type": "string",
            "description": "Select which live openFDA enforcement feed or product directory to scan when fdaIdentifiers is empty.",
            "default": "ALL_RECALLS"
          },
          "searchQuery": {
            "title": "Product, Ingredient or Manufacturer Search (Discovery Mode)",
            "type": "string",
            "description": "Optional brand name, generic ingredient, medical device category, 3-letter product code, or manufacturer/labeler name (for example: 'Medtronic', 'Infusion Pump', 'Ibuprofen', 'Philips', 'Listeria')."
          },
          "recallClassFilter": {
            "title": "FDA Recall Severity Class (Discovery Mode)",
            "enum": [
              "ALL",
              "Class I",
              "Class II",
              "Class III"
            ],
            "type": "string",
            "description": "Filter enforcement recalls by FDA hazard severity: Class I (highest life-safety risk), Class II, or Class III.",
            "default": "ALL"
          },
          "ongoingOnly": {
            "title": "Active 'Ongoing' Recalls Only (Discovery Mode)",
            "type": "boolean",
            "description": "When true, restricts recall feeds to currently active Ongoing enforcement actions and excludes Completed or Terminated recalls.",
            "default": false
          },
          "state": {
            "title": "2-Letter US Firm State (Discovery Mode)",
            "type": "string",
            "description": "Optional 2-letter US state abbreviation for the recalling firm or 510(k) applicant (for example: 'CA', 'TX', 'NJ', 'MN', 'MA')."
          },
          "daysBack": {
            "title": "Lookback Window in Days (Discovery Mode)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of past calendar days (1 to 365) to scan for FDA recall report dates or 510(k) clearance decisions.",
            "default": 60
          },
          "maxResults": {
            "title": "Maximum Verified Records",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum verified FDA compliance records to return per run (1 to 500 on paid plans; capped at 25 on Free plans).",
            "default": 25
          },
          "includeDeepEnrichment": {
            "title": "Include RxNorm & FAERS/MAUDE Adverse Event Enrichment (Add-On Event)",
            "type": "boolean",
            "description": "When true, cross-joins NIH NLM RxNorm (RxCUI & clinical status), openFDA FAERS/MAUDE post-market adverse-event counts and top reported reactions, active ingredients, and full firm address metadata (triggers deep-enrichment event).",
            "default": false
          },
          "alertWebhookUrl": {
            "title": "Recall / Compliance Alert Webhook URL (Optional)",
            "type": "string",
            "description": "Optional HTTPS webhook URL (Slack, Microsoft Teams, Make, n8n, or Zapier) notified automatically on scheduled monitoring runs."
          },
          "alertOnChangesOnly": {
            "title": "Webhook Alert on Active Recalls or Delta Changes Only",
            "type": "boolean",
            "description": "When true (default), dispatches webhook notifications only when an active recall, FLAGGED/REVIEW_REQUIRED status, or status delta is detected.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}