{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Drug Approvals Scraper - Drugs@FDA NDA ANDA BLA",
    "description": "Extract FDA drug approvals from Drugs@FDA: NDA, ANDA (generic) and BLA (biologic) applications, sponsor, brand and generic names, active ingredients, dosage form, route, marketing status, approval dates and the full submission history. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "o8q3H5sgkndEpupfM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~fda-drug-approvals-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-fda-drug-approvals-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/scrapers_lat~fda-drug-approvals-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-fda-drug-approvals-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/scrapers_lat~fda-drug-approvals-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-fda-drug-approvals-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",
        "properties": {
          "sponsor": {
            "title": "Sponsor / Applicant",
            "type": "string",
            "description": "Company that holds the application, for example Pfizer, Teva or Novartis. Matches the sponsor name on the Drugs@FDA application. Leave empty for all sponsors."
          },
          "brandName": {
            "title": "Brand Name",
            "type": "string",
            "description": "Trade / brand name of the drug product, for example Lipitor, Humira or Ozempic. Leave empty to ignore."
          },
          "genericName": {
            "title": "Generic Name / Active Ingredient",
            "type": "string",
            "description": "Active ingredient (generic name), for example atorvastatin, adalimumab or semaglutide. Leave empty to ignore."
          },
          "applicationNumber": {
            "title": "Application Number",
            "type": "string",
            "description": "Exact Drugs@FDA application number with its prefix, for example NDA021436, ANDA076277 or BLA761363. Returns just that one application."
          },
          "applicationType": {
            "title": "Application Type",
            "enum": [
              "",
              "NDA",
              "ANDA",
              "BLA"
            ],
            "type": "string",
            "description": "Restrict to New Drug Applications (NDA, brand), Abbreviated New Drug Applications (ANDA, generic) or Biologics License Applications (BLA, biologic). Leave as Any for all types.",
            "default": ""
          },
          "marketingStatus": {
            "title": "Marketing Status",
            "enum": [
              "",
              "Prescription",
              "Over-the-counter",
              "Discontinued",
              "None"
            ],
            "type": "string",
            "description": "Restrict products to a marketing status. Prescription and Over-the-counter are actively marketed; Discontinued is no longer marketed; None covers tentative approvals.",
            "default": ""
          },
          "route": {
            "title": "Route of Administration",
            "type": "string",
            "description": "Restrict to a route, for example ORAL, INTRAVENOUS, TOPICAL, SUBCUTANEOUS or OPHTHALMIC. Leave empty for all routes."
          },
          "dosageForm": {
            "title": "Dosage Form",
            "type": "string",
            "description": "Restrict to a dosage form, for example TABLET, CAPSULE, INJECTION or SOLUTION. Leave empty for all forms."
          },
          "approvedFrom": {
            "title": "Approved From (date)",
            "type": "string",
            "description": "Only applications with an approval / submission action on or after this date. Format YYYY-MM-DD, for example 2024-01-01."
          },
          "approvedTo": {
            "title": "Approved To (date)",
            "type": "string",
            "description": "Only applications with an approval / submission action on or before this date. Format YYYY-MM-DD, for example 2024-12-31."
          },
          "searchQuery": {
            "title": "Raw openFDA Query (advanced)",
            "type": "string",
            "description": "Advanced: a raw Drugs@FDA search expression that already names a field, for example products.dosage_form:TABLET or sponsor_name:TEVA. Combined with the filters above."
          },
          "maxResults": {
            "title": "Max results (product rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of product rows to return. One approved application can yield several product rows. Free Apify plans are capped at 10."
          },
          "includeApprovalHistory": {
            "title": "Include approval history (paid add-on)",
            "type": "boolean",
            "description": "Add-on: emit the full submission / approval timeline for each application (every original approval and supplement with its type, number, status, date, class and review priority). Billed once per application on success. Disabled for free plans.",
            "default": false
          },
          "withAiSummary": {
            "title": "AI plain-English summary (paid add-on)",
            "type": "boolean",
            "description": "Add-on: generate a short plain-English summary of each application (what it is, drug class, approval status, generic or brand). Uses AI, billed once per application only on usable output. Disabled for free plans.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The FDA source does not require a proxy; you can leave this off.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}