{
  "openapi": "3.0.1",
  "info": {
    "title": "Oliveyoung Scraper — Rankings, Search, Ingredients [💰 $4/1K]",
    "description": "Olive Young (oliveyoung.co.kr), Korea's #1 beauty retailer: official best-seller rankings (top 100 by category, period, gender, age), keyword search in its own popularity order, and full ingredient lists in Korean + English INCI. Prices, discounts, ratings, review counts and barcodes as clean JSON.",
    "version": "0.1",
    "x-build-id": "O5boROptuQKRjg71f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cocomoon~oliveyoung-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cocomoon-oliveyoung-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~oliveyoung-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cocomoon-oliveyoung-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~oliveyoung-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cocomoon-oliveyoung-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": [
              "search",
              "ranking",
              "details"
            ],
            "type": "string",
            "description": "What to scrape: <b>search</b> — products by keyword, ordered by Olive Young popularity (prices, ratings, review counts); <b>ranking</b> — Olive Young's official best-seller chart: top 100 overall or per category, real-time / daily / weekly / monthly, optionally by gender and age group; <b>details</b> — full product details for specific products: <b>complete ingredient list (전성분) with English INCI names</b>, volume, shelf life, manufacturer, country of origin, functional-cosmetic review, how to use, cautions, option barcodes, current promotion and unit price.",
            "default": "search"
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search for (search mode only). Korean or English — e.g. <code>선크림</code>, <code>sunscreen</code>, <code>toner</code>, a brand name like <code>anua</code>.",
            "items": {
              "type": "string"
            }
          },
          "rankingCategories": {
            "title": "Ranking categories",
            "type": "array",
            "description": "Ranking mode: which best-seller charts to collect. Each category returns its own top 100. <b>All categories</b> is Olive Young's overall chart.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "skincare",
                "maskPack",
                "cleansing",
                "suncare",
                "makeup",
                "nails",
                "beautyTools",
                "dermaCosmetics",
                "fragrance",
                "haircare",
                "bodycare",
                "luxeEdit",
                "mensEdit",
                "healthSupplements",
                "food",
                "oralCare",
                "healthGoods",
                "hygiene",
                "fashion",
                "homeLiving",
                "hobby"
              ],
              "enumTitles": [
                "All categories (overall top 100)",
                "Skincare",
                "Mask packs",
                "Cleansing",
                "Sun care",
                "Makeup",
                "Nails",
                "Beauty tools",
                "Derma cosmetics",
                "Fragrance / diffusers",
                "Hair care",
                "Body care",
                "Luxe Edit",
                "Men's Edit",
                "Health supplements",
                "Food",
                "Oral care",
                "Health goods",
                "Hygiene",
                "Fashion",
                "Home / living",
                "Hobby / fancy"
              ]
            },
            "default": [
              "all"
            ]
          },
          "rankingPeriod": {
            "title": "Ranking period",
            "enum": [
              "REALTIME",
              "DAY",
              "WEEK",
              "MONTH"
            ],
            "type": "string",
            "description": "Ranking mode: which chart to read — the live chart (updated through the day), or sales over the last day, week or month.",
            "default": "REALTIME"
          },
          "rankingGender": {
            "title": "Ranking: buyer gender",
            "enum": [
              "ALL",
              "FEMALE",
              "MALE"
            ],
            "type": "string",
            "description": "Ranking mode: chart for all buyers, or only what women or men buy.",
            "default": "ALL"
          },
          "rankingAge": {
            "title": "Ranking: buyer age group",
            "enum": [
              "ALL",
              "TEENAGER",
              "TWENTIES",
              "THIRTIES",
              "OVER_FORTIES"
            ],
            "type": "string",
            "description": "Ranking mode: chart for all ages, or one age group.",
            "default": "ALL"
          },
          "rankingTop": {
            "title": "Ranking: top N per category",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Ranking mode: how many ranked products to return per category (1–100). In ranking mode this replaces Max items.",
            "default": 100
          },
          "includeDetails": {
            "title": "Add full details & ingredients to search or ranking results",
            "type": "boolean",
            "description": "Search and ranking modes: also fetch each product's details page — full ingredient list (Korean + English INCI names), volume, shelf life, manufacturer, country of origin, barcodes, promotion and unit price. Slower (2 extra requests per product); billed the same per product.",
            "default": false
          },
          "products": {
            "title": "Products (details mode)",
            "type": "array",
            "description": "Details mode: Olive Young product numbers (<code>A000000232672</code>) or product URLs. Tip: get product numbers from the <code>goodsNo</code> field of a search run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Search and details modes: maximum number of products to scrape in total (across all keywords). Ranking mode uses \"Top N per category\" instead.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Korean sites can be sensitive to datacenter IPs — if you see blocks, switch to residential proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}