{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Drug NDC & Labeler Directory Scraper",
    "description": "Search the FDA's public National Drug Code (NDC) Directory (openFDA) by labeler/company name, brand name, generic name, or product NDC. Returns real drug listings with labeler (manufacturer) company name, address info via openFDA, dosage form, route, marketing category, and active ingredients.",
    "version": "1.0",
    "x-build-id": "YfBQCS3ntMoGtHrvv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~fda-drug-labeler-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-fda-drug-labeler-scraper",
        "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/crawlerbros~fda-drug-labeler-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-fda-drug-labeler-scraper",
        "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/crawlerbros~fda-drug-labeler-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-fda-drug-labeler-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchByLabeler",
              "searchByBrand",
              "searchByGeneric",
              "byProductNdc",
              "byApplicationNumber",
              "byPackageNdc"
            ],
            "type": "string",
            "description": "What to search.",
            "default": "searchByLabeler"
          },
          "labelerName": {
            "title": "Labeler / company name",
            "type": "string",
            "description": "Company name that owns the drug listing (mode=searchByLabeler). Partial match, e.g. `pfizer`."
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Marketed brand name (mode=searchByBrand), e.g. `Advil`."
          },
          "genericName": {
            "title": "Generic / active-ingredient name",
            "type": "string",
            "description": "Generic drug name (mode=searchByGeneric), e.g. `ibuprofen`."
          },
          "productNdc": {
            "title": "Product NDC",
            "type": "string",
            "description": "Exact product NDC code (mode=byProductNdc), e.g. `0069-0235`."
          },
          "applicationNumber": {
            "title": "FDA application number",
            "type": "string",
            "description": "Exact FDA application number (mode=byApplicationNumber), e.g. `NDA213871`. Returns every NDC listing filed under that approval."
          },
          "packageNdc": {
            "title": "Package NDC",
            "type": "string",
            "description": "Exact package-level NDC code, e.g. `0069-0235-30` (mode=byPackageNdc). Different from the product NDC -- identifies one specific package configuration."
          },
          "productType": {
            "title": "Product type",
            "enum": [
              "",
              "HUMAN PRESCRIPTION DRUG",
              "HUMAN OTC DRUG",
              "BULK INGREDIENT",
              "DRUG FOR FURTHER PROCESSING",
              "ANIMAL DRUG FOR FURTHER PROCESSING",
              "NON-STANDARDIZED ALLERGENIC",
              "PLASMA DERIVATIVE",
              "VACCINE",
              "STANDARDIZED ALLERGENIC",
              "CELLULAR THERAPY",
              "LICENSED VACCINE BULK INTERMEDIATE"
            ],
            "type": "string",
            "description": "Filter to a specific FDA product type.",
            "default": ""
          },
          "marketingCategory": {
            "title": "Marketing category",
            "enum": [
              "",
              "ANDA",
              "NDA",
              "NDA AUTHORIZED GENERIC",
              "BLA",
              "OTC MONOGRAPH DRUG",
              "OTC MONOGRAPH FINAL",
              "OTC MONOGRAPH NOT FINAL",
              "BULK INGREDIENT",
              "BULK INGREDIENT FOR HUMAN PRESCRIPTION COMPOUNDING",
              "UNAPPROVED HOMEOPATHIC",
              "UNAPPROVED DRUG OTHER",
              "UNAPPROVED MEDICAL GAS",
              "UNAPPROVED DRUG FOR USE IN DRUG SHORTAGE",
              "EXPORT ONLY",
              "EMERGENCY USE AUTHORIZATION"
            ],
            "type": "string",
            "description": "Filter to a specific FDA marketing/approval category.",
            "default": ""
          },
          "route": {
            "title": "Route of administration",
            "enum": [
              "",
              "ORAL",
              "TOPICAL",
              "INTRAVENOUS",
              "SUBCUTANEOUS",
              "INTRAMUSCULAR",
              "OPHTHALMIC",
              "RESPIRATORY (INHALATION)",
              "DENTAL",
              "SUBLINGUAL",
              "NASAL",
              "TRANSDERMAL",
              "CUTANEOUS",
              "RECTAL",
              "VAGINAL",
              "AURICULAR (OTIC)",
              "BUCCAL",
              "INTRA-ARTICULAR",
              "EPIDURAL",
              "INTRATHECAL",
              "PARENTERAL",
              "PERCUTANEOUS",
              "INTRADERMAL",
              "INFILTRATION",
              "INTRACAUDAL",
              "SOFT TISSUE",
              "INTRALESIONAL",
              "SUBMUCOSAL",
              "EXTRACORPOREAL",
              "INTRAVASCULAR",
              "PERIODONTAL",
              "INTRAPERITONEAL",
              "IRRIGATION",
              "INTRA-ARTERIAL",
              "INTRAVITREAL",
              "INTRAVESICAL",
              "INTRAOCULAR",
              "INTRACAVITARY",
              "INTRAPLEURAL",
              "ENDOTRACHEAL",
              "RETROBULBAR",
              "INTRASYNOVIAL",
              "INTRACARDIAC",
              "INTRAMEDULLARY",
              "HEMODIALYSIS",
              "INTRAUTERINE",
              "SUBCONJUNCTIVAL",
              "INTRACAVERNOUS",
              "OROPHARYNGEAL",
              "SUBGINGIVAL",
              "INTRAVENTRICULAR",
              "SUBARACHNOID",
              "INTRAEPIDERMAL",
              "TRANSMUCOSAL",
              "INTRABRONCHIAL",
              "INTRACAMERAL",
              "SUPRACHOROIDAL",
              "CONJUNCTIVAL",
              "ENTERAL",
              "INTERSTITIAL",
              "INTRACANALICULAR",
              "INTRACEREBRAL",
              "INTRACOCHLEAR",
              "INTRACORONARY",
              "INTRAGASTRIC",
              "INTRALUMINAL",
              "INTRALYMPHATIC",
              "INTRASINAL",
              "TRANSTRACHEAL",
              "URETERAL",
              "URETHRAL"
            ],
            "type": "string",
            "description": "Filter to a specific route of administration.",
            "default": ""
          },
          "deaSchedule": {
            "title": "DEA controlled-substance schedule",
            "enum": [
              "",
              "CI",
              "CII",
              "CIII",
              "CIV",
              "CV"
            ],
            "type": "string",
            "description": "Filter to a specific DEA controlled-substance schedule (only present on controlled substances; most listings have none).",
            "default": ""
          },
          "dosageForm": {
            "title": "Dosage form",
            "type": "string",
            "description": "Filter to an FDA dosage form, e.g. `TABLET`, `CAPSULE`, `INJECTION`, `CREAM`. Free text (openFDA has 140+ distinct dosage forms) -- matching is case-insensitive and matches on whole words within the form, so `TABLET` also matches `TABLET, FILM COATED` and `TABLET, SUGAR COATED`."
          },
          "pharmClass": {
            "title": "Pharmacologic class",
            "type": "string",
            "description": "Filter to a pharmacologic class keyword, e.g. `vaccine`, `Nonsteroidal Anti-inflammatory Drug`, `Opioid`. Free text (openFDA has thousands of distinct pharmacologic class values) -- case-insensitive, matches whole words within the class name."
          },
          "finishedOnly": {
            "title": "Finished products only",
            "type": "boolean",
            "description": "Only include finished drug products (exclude bulk/unfinished ingredients).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "",
              "marketingStartDate:desc",
              "marketingStartDate:asc",
              "listingExpirationDate:desc",
              "listingExpirationDate:asc"
            ],
            "type": "string",
            "description": "Sort order for results. Default is openFDA's relevance order (unsorted).",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}