{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Clinical Trials Scraper [$2/1K 💰] | EU Trials",
    "description": "Scrape EU Clinical Trials Register studies by condition, country, phase or status. Get EudraCT numbers, sponsors, interventions, MedDRA terms, results and dates. $2 per 1,000 trials.",
    "version": "0.3",
    "x-build-id": "Ae7YmONABHVQHhhNr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~eu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-eu-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/ahmed_jasarevic~eu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-eu-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/ahmed_jasarevic~eu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-eu-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": [
          "maxRequestsPerCrawl"
        ],
        "properties": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Search term for clinical trials (e.g., 'cancer', 'diabetes', 'COVID-19'). Leave empty to fetch all trials.",
            "default": ""
          },
          "country": {
            "title": "Countries",
            "type": "array",
            "description": "Filter by country (ISO codes). Multiple values supported.",
            "items": {
              "type": "string"
            }
          },
          "age": {
            "title": "Age Groups",
            "type": "array",
            "description": "Filter by age group. Multiple values supported.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Trial Status",
            "type": "array",
            "description": "Filter by trial status. Multiple values supported.",
            "items": {
              "type": "string"
            }
          },
          "phase": {
            "title": "Trial Phase",
            "type": "array",
            "description": "Filter by trial phase. Multiple values supported.",
            "items": {
              "type": "string"
            }
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "",
              "both",
              "female-only",
              "male-only"
            ],
            "type": "string",
            "description": "Filter by gender.",
            "default": ""
          },
          "dateFrom": {
            "title": "Start Date From",
            "type": "string",
            "description": "Filter trials with start date from this date (YYYY-MM-DD).",
            "default": ""
          },
          "dateTo": {
            "title": "Start Date To",
            "type": "string",
            "description": "Filter trials with start date up to this date (YYYY-MM-DD).",
            "default": ""
          },
          "rare": {
            "title": "Rare Disease Only",
            "type": "boolean",
            "description": "Filter for rare disease trials only.",
            "default": false
          },
          "orphanimp": {
            "title": "Orphan Designation IMP",
            "type": "boolean",
            "description": "Filter for trials with IMP having orphan designation.",
            "default": false
          },
          "orphannum": {
            "title": "Orphan Designation Number",
            "type": "string",
            "description": "Filter by specific orphan designation number.",
            "default": ""
          },
          "resultsStatus": {
            "title": "Results Status",
            "enum": [
              "",
              "trials-with-results",
              "trials-without-results"
            ],
            "type": "string",
            "description": "Filter by results availability.",
            "default": ""
          },
          "maxPages": {
            "title": "Max Pages to Scrape",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of result pages to scrape (20 trials per page). Set to 0 for unlimited (capped at 1000 pages = 20,000 trials).",
            "default": 10
          },
          "scrapeDetailPages": {
            "title": "Scrape Detail Pages",
            "type": "boolean",
            "description": "Whether to scrape the detailed protocol page for each trial (one request per trial). Adds phase, orphan designation, pediatric trial info, interventions, and regulatory dates.",
            "default": true
          },
          "scrapeResults": {
            "title": "Scrape Results Pages",
            "type": "boolean",
            "description": "Whether to scrape results information for trials that have results available.",
            "default": false
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests per Crawl",
            "type": "integer",
            "description": "Hard limit on total requests. Overrides maxPages if reached first.",
            "default": 5000
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of pages fetched in parallel. Higher values finish runs faster; lower them if the register starts rate limiting you.",
            "default": 25
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Select proxies to be used by your crawler."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}