{
  "openapi": "3.0.1",
  "info": {
    "title": "Clinical Trials and FDA Data",
    "description": "Search ClinicalTrials.gov studies and look up FDA drug labels, drug approvals and 510(k) device clearances from official public APIs.",
    "version": "1.0",
    "x-build-id": "Q9AfbtfY5SnOt1gr9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jetlaunch~biomedical-regulatory-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jetlaunch-biomedical-regulatory-data",
        "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/jetlaunch~biomedical-regulatory-data/runs": {
      "post": {
        "operationId": "runs-sync-jetlaunch-biomedical-regulatory-data",
        "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/jetlaunch~biomedical-regulatory-data/run-sync": {
      "post": {
        "operationId": "run-sync-jetlaunch-biomedical-regulatory-data",
        "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": [
              "study-search",
              "study-detail",
              "label-lookup",
              "approval-lookup"
            ],
            "type": "string",
            "description": "study-search finds ClinicalTrials.gov studies by filters. study-detail returns full records for NCT numbers. label-lookup returns FDA drug label sections by drug name, NDC or set ID. approval-lookup returns Drugs@FDA applications and device 510(k) clearances.",
            "default": "study-search"
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit on records returned (and billed) in this run, across all queries.",
            "default": 10
          },
          "condition": {
            "title": "Condition",
            "type": "string",
            "description": "Disease or condition, for example asthma or type 2 diabetes."
          },
          "intervention": {
            "title": "Intervention",
            "type": "string",
            "description": "Drug, device or other intervention, for example dupilumab."
          },
          "keywords": {
            "title": "Other search terms",
            "type": "string",
            "description": "Free text matched across the study record."
          },
          "status": {
            "title": "Recruitment status",
            "type": "array",
            "description": "Keep only studies with one of these statuses. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "NOT_YET_RECRUITING",
                "RECRUITING",
                "ENROLLING_BY_INVITATION",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN",
                "UNKNOWN"
              ],
              "enumTitles": [
                "Not yet recruiting",
                "Recruiting",
                "Enrolling by invitation",
                "Active, not recruiting",
                "Completed",
                "Suspended",
                "Terminated",
                "Withdrawn",
                "Unknown status"
              ]
            },
            "default": []
          },
          "phase": {
            "title": "Phase",
            "type": "array",
            "description": "Keep only studies in these phases. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "EARLY_PHASE1",
                "PHASE1",
                "PHASE2",
                "PHASE3",
                "PHASE4",
                "NA"
              ],
              "enumTitles": [
                "Early phase 1",
                "Phase 1",
                "Phase 2",
                "Phase 3",
                "Phase 4",
                "Not applicable"
              ]
            },
            "default": []
          },
          "sponsor": {
            "title": "Sponsor",
            "type": "string",
            "description": "Lead sponsor or collaborator organization, for example Novartis."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country of at least one study location, for example Canada or Germany."
          },
          "startDateFrom": {
            "title": "Start date from",
            "type": "string",
            "description": "Earliest study start date as YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "startDateTo": {
            "title": "Start date to",
            "type": "string",
            "description": "Latest study start date as YYYY, YYYY-MM or YYYY-MM-DD."
          },
          "updatedFrom": {
            "title": "Last updated from",
            "type": "string",
            "description": "Only studies whose record was last updated on or after this date (YYYY-MM-DD)."
          },
          "updatedTo": {
            "title": "Last updated to",
            "type": "string",
            "description": "Only studies whose record was last updated on or before this date (YYYY-MM-DD)."
          },
          "fullRecords": {
            "title": "Full records in search results",
            "type": "boolean",
            "description": "Add eligibility criteria text, outcome measures and facility and city level locations to each search result. Same price per study.",
            "default": false
          },
          "nctIds": {
            "title": "NCT numbers",
            "type": "array",
            "description": "One NCT number per line, for example NCT07139899.",
            "items": {
              "type": "string"
            }
          },
          "drugNames": {
            "title": "Drug names",
            "type": "array",
            "description": "Brand, generic or substance names, one per line, for example lipitor or metformin.",
            "items": {
              "type": "string"
            }
          },
          "ndcs": {
            "title": "NDC codes",
            "type": "array",
            "description": "National Drug Codes, with or without hyphens, for example 58151-155 or 58151-155-77.",
            "items": {
              "type": "string"
            }
          },
          "setIds": {
            "title": "Label set IDs",
            "type": "array",
            "description": "DailyMed set IDs (GUIDs) to look up exact labels.",
            "items": {
              "type": "string"
            }
          },
          "labelSections": {
            "title": "Label sections",
            "type": "array",
            "description": "Sections to return. Leave empty for boxed warning, indications, dosage, contraindications and warnings.",
            "items": {
              "type": "string",
              "enum": [
                "boxed_warning",
                "indications_and_usage",
                "dosage_and_administration",
                "dosage_forms_and_strengths",
                "contraindications",
                "warnings",
                "precautions",
                "adverse_reactions",
                "drug_interactions",
                "use_in_specific_populations",
                "overdosage",
                "description",
                "clinical_pharmacology",
                "how_supplied",
                "storage_and_handling",
                "information_for_patients"
              ],
              "enumTitles": [
                "Boxed warning",
                "Indications and usage",
                "Dosage and administration",
                "Dosage forms and strengths",
                "Contraindications",
                "Warnings and cautions",
                "Precautions",
                "Adverse reactions (label summary)",
                "Drug interactions",
                "Use in specific populations",
                "Overdosage",
                "Description",
                "Clinical pharmacology and mechanism",
                "How supplied",
                "Storage and handling",
                "Information for patients"
              ]
            },
            "default": []
          },
          "labelProductType": {
            "title": "Product type",
            "enum": [
              "any",
              "prescription",
              "otc"
            ],
            "type": "string",
            "description": "Restrict name and NDC matches to prescription or over-the-counter labels.",
            "default": "any"
          },
          "maxLabelsPerQuery": {
            "title": "Labels per drug name or NDC",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Many generics share a name, so each name or NDC can match several labels. Each label returned is billed.",
            "default": 3
          },
          "maxCharsPerSection": {
            "title": "Maximum characters per section",
            "minimum": 200,
            "maximum": 100000,
            "type": "integer",
            "description": "Longer sections are cut at this length and marked as truncated.",
            "default": 8000
          },
          "approvalQueries": {
            "title": "Application numbers, 510(k) numbers or names",
            "type": "array",
            "description": "One per line: an application number such as NDA020702 or BLA125057, a 510(k) number such as K971754, or a drug or device name.",
            "items": {
              "type": "string"
            }
          },
          "approvalSource": {
            "title": "Search names in",
            "enum": [
              "drugs",
              "devices",
              "both"
            ],
            "type": "string",
            "description": "Where drug or device names are searched. Application numbers and K numbers are recognized automatically.",
            "default": "drugs"
          },
          "maxApprovalsPerQuery": {
            "title": "Records per name or number",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Each approval or clearance record returned is billed.",
            "default": 5
          },
          "openFdaApiKey": {
            "title": "openFDA API key (optional)",
            "type": "string",
            "description": "Free key from open.fda.gov. Without a key, openFDA allows 1,000 requests per day per IP address, and Apify runs share IP addresses. A key raises the limit to 120,000 per day. Stored as a secret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}