{
  "openapi": "3.0.1",
  "info": {
    "title": "Babitalk Scraper — Korean Clinic Deals, Clinics & Doctors (바비톡)",
    "description": "Scrape Babitalk (babitalk.com), Korea's plastic surgery & skin treatment app with 10M+ downloads: 7,000+ procedure deals with prices, discounts, ratings, review counts and categories, full deal details with options and side effects, and clinic profiles with doctors, address, facilities and deals.",
    "version": "0.1",
    "x-build-id": "K3wyyFAyLna8VCpij"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cocomoon~babitalk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cocomoon-babitalk-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~babitalk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cocomoon-babitalk-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~babitalk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cocomoon-babitalk-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",
              "clinics",
              "categories"
            ],
            "type": "string",
            "description": "What to scrape: <b>deals</b> — procedure deal listings (price, discount, rating, review count, clinic, category) for surgery and/or treatments, optionally per category; <b>details</b> — full details for specific deals, with every option and its price, description, who it is for and side effects; <b>clinics</b> — clinic profiles with doctors, address, facilities and all current deals; <b>categories</b> — the site's category tree with ids to use in deals mode.",
            "default": "deals"
          },
          "service": {
            "title": "Service",
            "enum": [
              "all",
              "surgery",
              "treatments"
            ],
            "type": "string",
            "description": "Deals mode: <b>surgery</b> (성형 — eyes, nose, facial contouring, breast, liposuction…), <b>treatments</b> (시술 — botox, filler, lifting, lasers, skin, hair removal, dental…) or both.",
            "default": "all"
          },
          "categoryIds": {
            "title": "Category ids (optional)",
            "type": "array",
            "description": "Deals mode: limit to these categories, one listing each — e.g. <code>1010046</code> (눈 / eyes), <code>1010062</code> (쌍꺼풀 / double eyelid). Ids starting with 101 are surgery, 102 are treatments. Run the <b>categories</b> mode once to get the full tree.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort deals by",
            "enum": [
              "popular",
              "reviewCount",
              "minPrice",
              "maxPrice",
              "maxScore",
              "recent"
            ],
            "type": "string",
            "description": "Deals mode: order of the results (same options as the site).",
            "default": "popular"
          },
          "kakaoConsultOnly": {
            "title": "Only deals with KakaoTalk consultation",
            "type": "boolean",
            "description": "Deals mode: keep only deals whose clinic answers consultations on KakaoTalk.",
            "default": false
          },
          "includeDetails": {
            "title": "Add full deal details",
            "type": "boolean",
            "description": "Deals mode: also fetch each deal's details — every option with its own price, description, who it is recommended for, side effects, dates. Two extra requests per deal; billed the same per deal.",
            "default": false
          },
          "deals": {
            "title": "Deals (details mode)",
            "type": "array",
            "description": "Details mode: deal ids (<code>68753</code>) or deal URLs (<code>https://babitalk.com/events/68753</code>).",
            "items": {
              "type": "string"
            }
          },
          "clinics": {
            "title": "Clinics (clinics mode)",
            "type": "array",
            "description": "Clinics mode: clinic ids (<code>5009</code>) or clinic URLs (<code>https://babitalk.com/hospitals/5009</code>). Tip: take them from the <code>hospitalId</code> field of a deals run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rows in total. The whole catalog is about 7,000 deals and 2,600 clinics.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. The default Apify proxy works. The Actor requests public pages at a modest rate and does not rotate IP addresses to work around blocks.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}