{
  "openapi": "3.0.1",
  "info": {
    "title": "Clinical Trials Registry",
    "description": "Export ClinicalTrials.gov study records for trial landscape and sponsor research. IntuiTek adds source links, consistent fields and clear search coverage.",
    "version": "0.0",
    "x-build-id": "5mcyicFf8hXw0ZcfI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thebrierfox~clinical-trials-registry-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thebrierfox-clinical-trials-registry-actor",
        "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/thebrierfox~clinical-trials-registry-actor/runs": {
      "post": {
        "operationId": "runs-sync-thebrierfox-clinical-trials-registry-actor",
        "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/thebrierfox~clinical-trials-registry-actor/run-sync": {
      "post": {
        "operationId": "run-sync-thebrierfox-clinical-trials-registry-actor",
        "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": {
          "condition": {
            "title": "Condition or disease",
            "type": "string",
            "description": "What condition are you researching? For example, diabetes or breast cancer. Clear the example condition if you want to search only by sponsor or exact study IDs."
          },
          "sponsor": {
            "title": "Sponsor (optional)",
            "type": "string",
            "description": "Add a lead sponsor to narrow your condition search. Leave blank for all sponsors, or clear the condition to search by sponsor alone."
          },
          "maxItems": {
            "title": "Maximum studies",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many delivered studies. At $0.008 per study, 20 results cost $0.16 and 100 cost $0.80 in result charges. A cap is not a guarantee of a complete search; check Search summary. Allowed: 1–1,000.",
            "default": 20
          },
          "statuses": {
            "title": "Study status",
            "type": "array",
            "description": "Choose one or more reported registry statuses. Leave empty to include all statuses. Status alone does not define a search; keep a condition, sponsor, date, other term or study ID.",
            "items": {
              "type": "string",
              "enum": [
                "RECRUITING",
                "NOT_YET_RECRUITING",
                "ACTIVE_NOT_RECRUITING",
                "COMPLETED",
                "ENROLLING_BY_INVITATION",
                "SUSPENDED",
                "TERMINATED",
                "WITHDRAWN",
                "AVAILABLE",
                "NO_LONGER_AVAILABLE",
                "TEMPORARILY_NOT_AVAILABLE",
                "APPROVED_FOR_MARKETING",
                "WITHHELD",
                "UNKNOWN"
              ],
              "enumTitles": [
                "Recruiting",
                "Not yet recruiting",
                "Active, not recruiting",
                "Completed",
                "Enrolling by invitation",
                "Suspended",
                "Terminated",
                "Withdrawn",
                "Available",
                "No longer available",
                "Temporarily not available",
                "Approved for marketing",
                "Withheld",
                "Unknown"
              ]
            }
          },
          "updatedSince": {
            "title": "Registry updated on or after",
            "type": "string",
            "description": "Include studies whose registry update was posted on or after this date. This filters the registry update date; it does not identify which fields changed."
          },
          "ids": {
            "title": "Exact study IDs",
            "type": "array",
            "description": "Optional official NCT identifiers, such as NCT05151705. Clear the example condition for an ID-only search. Up to 100 IDs; other selected filters still apply.",
            "items": {
              "type": "string"
            }
          },
          "term": {
            "title": "Additional search terms",
            "type": "string",
            "description": "Optional words or an official ClinicalTrials.gov search expression. Use Exact study IDs for NCT numbers. Up to 500 characters."
          },
          "pageSize": {
            "title": "Studies per source request",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum studies fetched in each source request. The Maximum studies setting still caps delivered results.",
            "default": 50
          },
          "maxPages": {
            "title": "Maximum source pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Stop after this many pages from the registry. Reaching this limit can leave the search incomplete; Search summary explains the result.",
            "default": 20
          },
          "maxRetries": {
            "title": "Source read retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retry transient registry-read failures only. Dataset delivery is never automatically retried by this application.",
            "default": 2
          },
          "requestTimeoutMs": {
            "title": "Source request timeout (ms)",
            "minimum": 1000,
            "maximum": 60000,
            "type": "integer",
            "description": "Maximum wait per source request, including its response. Leave the default unless you need a different bound.",
            "default": 20000
          },
          "maxDurationMs": {
            "title": "Search time limit (ms)",
            "minimum": 1000,
            "maximum": 480000,
            "type": "integer",
            "description": "Checked before reads and deliveries. An in-flight storage request can finish later. Set the platform timeout longer than this value.",
            "default": 240000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}