{
  "openapi": "3.0.1",
  "info": {
    "title": "FDA Drug Approval Lookup (NDA / ANDA / BLA)",
    "description": "Search FDA drug applications by company, application number, or drug name. Covers NDAs, ANDAs, and CDER BLAs — search-first, not a bulk dump.",
    "version": "0.1",
    "x-build-id": "TFI00sks843irPee3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sovereign_workspace~fda-drugsfda-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sovereign_workspace-fda-drugsfda-lookup",
        "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/sovereign_workspace~fda-drugsfda-lookup/runs": {
      "post": {
        "operationId": "runs-sync-sovereign_workspace-fda-drugsfda-lookup",
        "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/sovereign_workspace~fda-drugsfda-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-sovereign_workspace-fda-drugsfda-lookup",
        "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": {
          "profile": {
            "title": "Operator profile",
            "enum": [
              "standard",
              "smoke"
            ],
            "type": "string",
            "description": "Named config preset applied at start. Any field you set explicitly below overrides the preset."
          },
          "sponsors": {
            "title": "Sponsor (company) names",
            "type": "array",
            "description": "Company names or fragments, matched anywhere in the sponsor name as FDA records it (often abbreviated, e.g. TEVA PHARMS, DR REDDYS LABS LTD). Case doesn't matter. Up to 5. Give at least one of sponsors, application numbers or drug keywords.",
            "items": {
              "type": "string"
            }
          },
          "application_numbers": {
            "title": "Application numbers",
            "type": "array",
            "description": "Specific applications, e.g. NDA020702, ANDA076347, BLA125514 (spaces and leading zeros optional). Up to 200.",
            "items": {
              "type": "string"
            }
          },
          "drug_keywords": {
            "title": "Brand or ingredient keywords",
            "type": "array",
            "description": "Words or phrases matched against product brand names and active-ingredient names (e.g. atorvastatin, keytruda). Up to 5.",
            "items": {
              "type": "string"
            }
          },
          "application_types": {
            "title": "Application types",
            "type": "array",
            "description": "Limit to NDAs (new drugs), ANDAs (generics) and/or BLAs (CDER-regulated biologics).",
            "items": {
              "type": "string",
              "enum": [
                "NDA",
                "ANDA",
                "BLA"
              ],
              "enumTitles": [
                "NDA (new drug application)",
                "ANDA (generic)",
                "BLA (biologic, CDER only)"
              ]
            }
          },
          "marketing_statuses": {
            "title": "Marketing status",
            "type": "array",
            "description": "Keep applications with at least one product in these statuses.",
            "items": {
              "type": "string",
              "enum": [
                "prescription",
                "otc",
                "discontinued",
                "tentative"
              ],
              "enumTitles": [
                "Prescription",
                "Over-the-counter",
                "Discontinued",
                "None (tentative approval)"
              ]
            }
          },
          "submission_types": {
            "title": "Submission types",
            "type": "array",
            "description": "Only report actions of these types: original applications and/or supplements.",
            "items": {
              "type": "string",
              "enum": [
                "ORIG",
                "SUPPL"
              ],
              "enumTitles": [
                "Original (ORIG)",
                "Supplement (SUPPL)"
              ]
            }
          },
          "submission_statuses": {
            "title": "Submission statuses",
            "type": "array",
            "description": "Only report approvals (AP) and/or tentative approvals (TA).",
            "items": {
              "type": "string",
              "enum": [
                "AP",
                "TA"
              ],
              "enumTitles": [
                "Approved (AP)",
                "Tentative approval (TA)"
              ]
            }
          },
          "submission_classes": {
            "title": "Submission classes",
            "type": "array",
            "description": "FDA submission class codes, e.g. EFFICACY, LABELING, MANUF (CMC), TYPE 1 (new molecular entity), BIOSIMILAR. Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "review_priorities": {
            "title": "Review priority",
            "type": "array",
            "description": "Only report actions with this review priority.",
            "items": {
              "type": "string",
              "enum": [
                "STANDARD",
                "PRIORITY"
              ],
              "enumTitles": [
                "Standard",
                "Priority"
              ]
            }
          },
          "orphan_only": {
            "title": "Orphan designation only",
            "type": "boolean",
            "description": "Only report actions marked Orphan.",
            "default": false
          },
          "since_days": {
            "title": "Action window (days back)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only report applications with a matching action (approval or tentative approval) in the last N days; 0 = any date. openFDA refreshes Drugs@FDA a few times a week, a couple of business days behind FDA's own site.",
            "default": 0
          },
          "only_new_actions": {
            "title": "Only actions not reported before",
            "type": "boolean",
            "description": "For scheduled watches: skip applications whose matching actions this same search already returned in an earlier run, so an application is charged again only when it has a new action. Kept in a named key-value store in your account.",
            "default": false
          },
          "api_key": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Optional free openFDA key. Without one, openFDA allows 1,000 requests per day per IP, and Apify IPs are shared."
          },
          "limit": {
            "title": "Max applications",
            "type": "integer",
            "description": "Maximum number of application records to return per run (up to 1000).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}