{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Drug & Quasi-Drug Approvals (MFDS) in English",
    "description": "New drug approvals in South Korea, search by ingredient, ATC code or company, safety label changes, and quasi-drug approvals (masks, toothpaste, sanitary pads, disinfectants), from MFDS, with English names and indications.",
    "version": "0.1",
    "x-build-id": "ProhmGmFiYI2j0V3s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cm504~korea-drug-approvals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cm504-korea-drug-approvals",
        "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-drug-approvals/runs": {
      "post": {
        "operationId": "runs-sync-cm504-korea-drug-approvals",
        "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-drug-approvals/run-sync": {
      "post": {
        "operationId": "run-sync-cm504-korea-drug-approvals",
        "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 do",
            "enum": [
              "drugs",
              "label_changes",
              "quasi_drugs"
            ],
            "type": "string",
            "description": "Choose the task. 'drugs': South Korea drug approvals from MFDS (formerly KFDA), newest first, or a search by ingredient, ATC code, company or product. 'label_changes': drugs whose approved label (indications, dosage, precautions) changed in a date range (default: last 7 days). 'quasi_drugs': quasi-drug approvals such as KF masks, toothpaste, mouthwash, sanitary pads, disinfectants and insect repellents.",
            "default": "drugs"
          },
          "ingredientEn": {
            "title": "Active ingredient (English)",
            "type": "string",
            "description": "Drugs mode only. Active ingredient in English, case-insensitive, e.g. semaglutide, tirzepatide, metformin hydrochloride, pembrolizumab. Returns every product containing it, newest first, with re-examination and data protection dates (generic entry signals). When set, the Korean ingredient, ATC, insurance code, product and company filters are ignored.",
            "default": ""
          },
          "ingredientKo": {
            "title": "Active ingredient (Korean)",
            "type": "string",
            "description": "Drugs mode only. Active ingredient in Korean, e.g. 세마글루티드 (semaglutide), 메트포르민 (metformin). Use the English field instead if you only know the English name.",
            "default": ""
          },
          "atcCode": {
            "title": "ATC code",
            "type": "string",
            "description": "Drugs mode only. WHO ATC code as registered by MFDS, e.g. A10BJ06 (semaglutide), A10BK01 (dapagliflozin). Case-insensitive.",
            "default": ""
          },
          "insuranceCode": {
            "title": "Korean insurance (EDI) code",
            "type": "string",
            "description": "Drugs mode only. Korean health insurance (EDI) product code, as found on HIRA reimbursement lists. Finds the approval behind a reimbursed product.",
            "default": ""
          },
          "productName": {
            "title": "Product name contains (Korean)",
            "type": "string",
            "description": "Drugs and quasi-drugs. Part of the Korean product name, e.g. 위고비 (Wegovy), 오젬픽 (Ozempic), 마스크 (mask), 치약 (toothpaste). Korean only: MFDS search does not match English product names here.",
            "default": ""
          },
          "company": {
            "title": "Company name contains (Korean)",
            "type": "string",
            "description": "Drugs and quasi-drugs. Part of the Korean company (license holder) name, e.g. 한미약품 (Hanmi), 노보노디스크 (Novo Nordisk), 유한킴벌리 (Yuhan-Kimberly). Korean only.",
            "default": ""
          },
          "rxOtc": {
            "title": "Prescription or OTC",
            "enum": [
              "all",
              "rx",
              "otc"
            ],
            "type": "string",
            "description": "Drugs and label changes: all, rx (prescription only) or otc (over-the-counter only).",
            "default": "all"
          },
          "orphanOnly": {
            "title": "Orphan (rare disease) drugs only",
            "type": "boolean",
            "description": "Drugs mode only. Return only orphan (rare disease) drugs designated by MFDS.",
            "default": false
          },
          "quasiClass": {
            "title": "Quasi-drug category",
            "enum": [
              "",
              "31100",
              "31200",
              "31300",
              "32100",
              "32200",
              "32300",
              "33100",
              "33200",
              "33300",
              "33400",
              "33500",
              "33600",
              "33700",
              "33800",
              "34000",
              "35100",
              "35200",
              "35300",
              "36000",
              "41100",
              "41200",
              "41300",
              "41400",
              "43200",
              "44000",
              "45100",
              "45200",
              "46000",
              "47110",
              "47120",
              "47130",
              "47210",
              "47220",
              "47230",
              "47240",
              "48100",
              "48300",
              "48400",
              "48500",
              "48700",
              "49200"
            ],
            "type": "string",
            "description": "Quasi-drugs mode only. One of 41 official MFDS quasi-drug categories, e.g. 32200 Health masks (KF certified), 41400 Toothpaste, 31100 Sanitary pads, 46000 Topical disinfectants. Empty = all categories.",
            "default": ""
          },
          "since": {
            "title": "Approved (or changed) on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Only approvals (or, for label changes, changes) on or after this date. For label changes the default is the last 7 days."
          },
          "until": {
            "title": "Approved (or changed) on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Only approvals (or label changes) on or before this date. Default: today."
          },
          "activeOnly": {
            "title": "Only products still on the market",
            "type": "boolean",
            "description": "Skip withdrawn, revoked and expired approvals (status other than Active). Turn off to include historical products.",
            "default": true
          },
          "includeLabelText": {
            "title": "Include full dosage and precautions text (drugs)",
            "type": "boolean",
            "description": "Drugs and label changes: add the full Korean dosage and precautions text from the approved label. Links to the official label PDFs are always included. Makes records much longer.",
            "default": false
          },
          "onlyNew": {
            "title": "Only items not delivered before",
            "type": "boolean",
            "description": "For scheduled monitoring: skip products (or label changes) already returned by an earlier run with the same monitor name, so a daily schedule delivers each new approval once.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the 'only new' memory, e.g. glp1-watch. Use a different name for each schedule with different filters.",
            "default": "default"
          },
          "translateToEnglish": {
            "title": "English indications and names",
            "type": "boolean",
            "description": "Add English product and company names where MFDS has none, and English indications (indicationsEn), 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 (each result is charged). Default 20.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}