{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Clinical Trial Approvals (MFDS) - Sponsors, Phases, Sites",
    "description": "Newly approved drug clinical trials in South Korea from MFDS, in English: sponsor, developer, phase, indication, design, enrollment, trial sites. Search by sponsor, drug, phase or site.",
    "version": "0.1",
    "x-build-id": "rMt1upwj4C6yWRg0w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cm504~korea-clinical-trials/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cm504-korea-clinical-trials",
        "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/cm504~korea-clinical-trials/runs": {
      "post": {
        "operationId": "runs-sync-cm504-korea-clinical-trials",
        "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/cm504~korea-clinical-trials/run-sync": {
      "post": {
        "operationId": "run-sync-cm504-korea-clinical-trials",
        "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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "trials",
              "sites"
            ],
            "type": "string",
            "description": "Choose the task.",
            "default": "trials"
          },
          "keyword": {
            "title": "Keyword in title, condition or drug",
            "type": "string",
            "description": "Trials only. English or Korean, case-insensitive, e.g. obesity, NSCLC, KRAS, 비만. Matched against the English title (where MFDS has one), the Korean title, condition, product and ingredient.",
            "default": ""
          },
          "sponsor": {
            "title": "Sponsor (applicant) name contains",
            "type": "string",
            "description": "Trials only. The company or institution that filed the trial in Korea (often the local subsidiary or a CRO), English or Korean, e.g. Novartis, IQVIA, 한미약품. Covers approvals since 2012.",
            "default": ""
          },
          "developer": {
            "title": "Original developer contains",
            "type": "string",
            "description": "Trials only. The company that owns the drug, e.g. Pfizer, AstraZeneca, Hanmi, 유한양행.",
            "default": ""
          },
          "product": {
            "title": "Product name or code contains",
            "type": "string",
            "description": "Trials only. Investigational product name or development code, e.g. ABBV-400, HCP1701, DW5524.",
            "default": ""
          },
          "ingredient": {
            "title": "Active ingredient contains",
            "type": "string",
            "description": "Trials only. As registered (English or Korean, sponsors use both), e.g. semaglutide, 세마글루티드, tirzepatide.",
            "default": ""
          },
          "site": {
            "title": "Trial site (hospital) contains",
            "type": "string",
            "description": "Trials: only trials run at this site. Sites: filter the site list. English or Korean, e.g. Asan Medical Center, Samsung Medical Center, 서울대학교병원.",
            "default": ""
          },
          "phases": {
            "title": "Phase",
            "type": "array",
            "description": "Trials only. Combined phases (e.g. 1/2) match both.",
            "items": {
              "type": "string",
              "enum": [
                "phase0",
                "phase1",
                "phase2",
                "phase3",
                "phase4",
                "bioequivalence",
                "investigator",
                "extension"
              ],
              "enumTitles": [
                "Phase 0",
                "Phase 1 (incl. 1b, 1/2)",
                "Phase 2 (incl. 2a, 2b, 1/2, 2/3)",
                "Phase 3 (incl. 3a, 3b, 2/3)",
                "Phase 4",
                "Bioequivalence study",
                "Investigator-initiated trial",
                "Extension study"
              ]
            },
            "default": []
          },
          "therapeuticAreas": {
            "title": "Therapeutic area",
            "type": "array",
            "description": "Trials only (approvals since 2019).",
            "items": {
              "type": "string",
              "enum": [
                "Oncology",
                "Hemato-oncology",
                "Cardiovascular",
                "Endocrine & metabolism",
                "Gastrointestinal",
                "Central nervous system",
                "Respiratory",
                "Anti-infective",
                "Musculoskeletal",
                "Hematology",
                "Dermatology",
                "Genitourinary",
                "Immunology / immunosuppression",
                "Other"
              ],
              "enumTitles": [
                "Oncology",
                "Hemato-oncology",
                "Cardiovascular",
                "Endocrine & metabolism",
                "Gastrointestinal",
                "Central nervous system",
                "Respiratory",
                "Anti-infective",
                "Musculoskeletal",
                "Hematology",
                "Dermatology",
                "Genitourinary",
                "Immunology / immunosuppression",
                "Other"
              ]
            },
            "default": []
          },
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Trials only (approvals since 2019).",
            "items": {
              "type": "string",
              "enum": [
                "approved",
                "recruiting",
                "active_not_recruiting",
                "completed"
              ],
              "enumTitles": [
                "Approved, not yet recruiting",
                "Recruiting",
                "Active, not recruiting",
                "Completed"
              ]
            },
            "default": []
          },
          "scope": {
            "title": "Korea-only or multinational",
            "enum": [
              "all",
              "domestic",
              "multinational",
              "bridging"
            ],
            "type": "string",
            "description": "Trials only.",
            "default": "all"
          },
          "purpose": {
            "title": "Purpose",
            "enum": [
              "all",
              "marketing",
              "academic"
            ],
            "type": "string",
            "description": "Trials only.",
            "default": "all"
          },
          "developerCountry": {
            "title": "Developer country",
            "type": "string",
            "description": "Trials only, e.g. United States, Japan, China, South Korea.",
            "default": ""
          },
          "firstInHumanOnly": {
            "title": "First-in-human trials only",
            "type": "boolean",
            "description": "Trials only.",
            "default": false
          },
          "trialIds": {
            "title": "Trial IDs",
            "type": "array",
            "description": "Trials only: fetch these MFDS trial serial numbers (e.g. 202600897) and ignore the other filters.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Sites only, e.g. Seoul, Busan, Gyeonggi-do.",
            "default": ""
          },
          "includeSiteStats": {
            "title": "Count trials per site",
            "type": "boolean",
            "description": "Sites only: total approved trials since 2012, trials in the last 12 months and the latest approval date at each site.",
            "default": true
          },
          "since": {
            "title": "Approved on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Full trial details exist from 2019; earlier approvals (from 2012) come with basic fields. Sites: designated on or after."
          },
          "until": {
            "title": "Approved on or before",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "onlyNew": {
            "title": "Only items not delivered before",
            "type": "boolean",
            "description": "For scheduled monitoring: skip trials (or sites) already returned by a previous run with the same monitor name.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate 'only new' memories for different schedules.",
            "default": "default"
          },
          "translateToEnglish": {
            "title": "Translate missing English",
            "type": "boolean",
            "description": "Titles without an official English version, conditions, objectives and names not in our tables are translated by Claude (Anthropic). Korean originals are always included.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}