{
  "openapi": "3.0.1",
  "info": {
    "title": "Gangnam Unni Scraper — Korean Clinic Deals & Prices (강남언니)",
    "description": "Scrape Gangnam Unni (unni.app), Korea's #1 plastic surgery & dermatology platform: 10,000+ live procedure deals with VAT-inclusive prices, discounts, ratings, review counts and clinic location, in Korean, English, Japanese, Thai and Chinese. Optional full details: options, extra charges, steps.",
    "version": "0.1",
    "x-build-id": "EKq4OnOdNx5yl5Zpw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cocomoon~gangnamunni-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cocomoon-gangnamunni-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/cocomoon~gangnamunni-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cocomoon-gangnamunni-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/cocomoon~gangnamunni-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cocomoon-gangnamunni-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "deals",
              "details",
              "filters"
            ],
            "type": "string",
            "description": "What to scrape: <b>deals</b> — the procedure deal listings (price, discount, rating, review count, clinic) for your keywords, categories and districts; <b>details</b> — full details for specific deals: every option with its price, extra charges, procedure steps, duration, side effects, description; <b>filters</b> — the site's treatment category tree (with deal counts) and the district codes you can filter by.",
            "default": "deals"
          },
          "language": {
            "title": "Language",
            "enum": [
              "ko-KR",
              "en-US",
              "ja-JP",
              "th-TH",
              "zh-Hans-CN",
              "zh-Hant-TW"
            ],
            "type": "string",
            "description": "Site language. Each language is its own catalog with localized titles and option names: Korean has 10,000+ deals; the others have the deals clinics publish for foreign patients (English about 1,300) and add prices converted to USD / JPY / THB / CNY / TWD.",
            "default": "ko-KR"
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Deals mode: search terms in the chosen language — a procedure (<code>코성형</code>, <code>rhinoplasty</code>, <code>ウルセラ</code>), a brand (<code>써마지</code>, <code>Thermage</code>), a clinic name or an area. Leave empty (and no categories) to list the site's recommended feed; that feed stops at 200 deals, so with a larger <b>Max items</b> the Actor walks every category instead.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Treatment categories",
            "type": "array",
            "description": "Deals mode: one listing per selected category, searched by the category's own name in the chosen language (the same thing the site's category tabs do).",
            "items": {
              "type": "string",
              "enum": [
                "eyes",
                "nose",
                "skin",
                "lifting",
                "botox",
                "filler",
                "facialContour",
                "breast",
                "fatDiet",
                "hairRemoval",
                "hairTransplant",
                "dental",
                "orientalMedicine",
                "other"
              ],
              "enumTitles": [
                "Eye surgery (눈성형)",
                "Nose surgery (코성형)",
                "Skin (피부)",
                "Lifting (리프팅)",
                "Botox (보톡스)",
                "Filler (필러)",
                "Facial contouring & jaw (안면윤곽·양악)",
                "Breast (가슴성형)",
                "Fat & diet (지방·다이어트)",
                "Hair removal (제모)",
                "Hair transplant (모발이식)",
                "Dental (치아)",
                "Oriental medicine (한방)",
                "Other (기타)"
              ]
            },
            "default": []
          },
          "districts": {
            "title": "District codes (optional)",
            "type": "array",
            "description": "Deals mode: limit to clinics in these districts, by the site's district code — e.g. <code>N1102</code> (Cheongdam / Apgujeong / Sinsa), <code>N1101</code> (Gangnam stn. / Sinnonhyeon / Yangjae), <code>N1404</code> (Busan Centum / Haeundae). Run the <b>filters</b> mode once to get the full list of codes.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort deals by",
            "enum": [
              "RECOMMENDATION",
              "HIGHEST_POPULARITY",
              "LATEST_STARTS_AT",
              "LOWEST_DISCOUNTED_COST",
              "HIGHEST_DISCOUNTED_COST",
              "HIGHEST_DISCOUNT_RATE",
              "HIGHEST_RATING_COUNT",
              "HIGHEST_RATING_AMOUNT",
              "EARLIEST_ENDS_AT"
            ],
            "type": "string",
            "description": "Deals mode: order of the results (same options as the site).",
            "default": "RECOMMENDATION"
          },
          "clinicCountry": {
            "title": "Clinic country",
            "enum": [
              "all",
              "KR",
              "JP"
            ],
            "type": "string",
            "description": "Deals mode: the Japanese catalog mixes Korean clinics (KRW prices) with clinics in Japan (JPY prices). Keep only one country, or all.",
            "default": "all"
          },
          "includeDetails": {
            "title": "Add full deal details",
            "type": "boolean",
            "description": "Deals mode: also fetch each deal's detail page — every option with its own price, extra charges (anesthesia, follow-up), procedure steps and duration, who it is recommended for, side effects, clinic address in English. One extra request per deal; billed the same per deal.",
            "default": false
          },
          "deals": {
            "title": "Deals (details mode)",
            "type": "array",
            "description": "Details mode: deal IDs (<code>6554</code>) or deal URLs (<code>https://unni.app/events/6554</code>). Tip: take them from the <code>dealId</code> field of a deals run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rows in total (across all keywords and categories). The Korean catalog has 10,000+ deals; set this higher to get all of them.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Leave proxies OFF (the default): the Actor reads public pages directly from the Apify platform at a modest rate. It does not rotate IP addresses or work around blocks; if the site ever refuses requests, the run stops and reports it.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}