{
  "openapi": "3.0.1",
  "info": {
    "title": "Olive Young Product Scraper",
    "description": "Scrape Olive Young (Global) beauty & cosmetics products — price in USD, ratings, images, ingredients & specs. Keyword search, full detail enrichment, clean JSON/CSV, no code.",
    "version": "1.0",
    "x-build-id": "UbjYMjqePXHax5FjK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~olive-young-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-olive-young-product-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/sian.agency~olive-young-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-olive-young-product-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/sian.agency~olive-young-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-olive-young-product-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",
        "properties": {
          "keywords": {
            "title": "🔍 Search Keywords",
            "type": "array",
            "description": "🔍 **KEYWORD SEARCH:** Free-text Olive Young Global searches — exactly what you'd type into the site's search bar.\n\n📝 **EXAMPLES:** `serum` · `snail mucin` · `sunscreen` · `cushion foundation` · `cica cream`\n\n💡 **TIP:** Add one keyword per line — each runs as its own search and all results land in the same dataset.\n\n🖊️ **BULK EDIT:** Click \"Bulk edit\" to paste many keywords at once (one per line).",
            "default": [
              "serum"
            ],
            "items": {
              "type": "string"
            }
          },
          "scrapeMode": {
            "title": "⚙️ Scrape Mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚙️ **SCRAPE DEPTH:** Choose how much data to pull per product.\n\n⚡ **Overview (fast):** Search results only — price (USD), ratings, review count, images, brand and category. Fastest and cheapest path.\n\n🔬 **Detail (enriched specs):** Everything in Overview PLUS the full specification table, ingredient list, country of manufacture, product options/variants, GTIN barcode and the complete image gallery scraped from each product page.\n\n💡 **TIP:** Start with Overview to scope a category, then switch to Detail when you need the full spec sheet and ingredients for feeds or comparisons.",
            "default": "overview"
          },
          "sort": {
            "title": "🔃 Sort Order",
            "enum": [
              "popular",
              "relevance",
              "new",
              "price_low",
              "price_high",
              "reviews"
            ],
            "type": "string",
            "description": "🔃 **RESULT ORDERING:** Order search results using Olive Young's own native sort options — so you get the same ranking real shoppers see.\n\n🏆 **Most popular** surfaces best-sellers first · 🎯 **Relevance** matches the query most closely · 🆕 **Newest** prioritizes the latest arrivals · 💲 **Price** sorts ascending or descending · ⭐ **Reviews** leads with the most-reviewed items.",
            "default": "popular"
          },
          "maxResults": {
            "title": "🔢 Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 **RESULT CAP:** Maximum number of products to return across all keywords combined.\n\n🎁 **TIER-BASED LIMITS:**\n- **FREE users:** Up to 25 products per run\n- **PAID users:** Unlimited — scrape entire categories in a single run\n\n💡 **TIP:** Keep this low while you dial in your keywords, then raise it once the output looks right.",
            "default": 100
          },
          "brandNoList": {
            "title": "™️ Brand IDs (Advanced filter)",
            "type": "array",
            "description": "™️ **BRAND FILTER (Advanced):** Restrict results to specific brands by their Olive Young brand id (e.g. `B00568`).\n\n🔧 **HOW TO GET IT:** Run a search first — every result carries a `brand_no` field, and the run also returns the available brand facets. Paste the brand id(s) here to narrow the next run.\n\n💡 **TIP:** Leave empty to include all brands.",
            "items": {
              "type": "string"
            }
          },
          "ctgrNoList": {
            "title": "🗂️ Category IDs (Advanced filter)",
            "type": "array",
            "description": "🗂️ **CATEGORY FILTER (Advanced):** Restrict results to specific Olive Young category ids (e.g. `1000000028`).\n\n🔧 **HOW TO GET IT:** Every result carries a `category_no` field; the category facets returned by a run list the available ids. Paste the id(s) here to narrow the next run.\n\n💡 **TIP:** Leave empty to include all categories.",
            "items": {
              "type": "string"
            }
          },
          "lowestPrice": {
            "title": "💲 Min Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "💲 **PRICE FLOOR (USD):** Only return products priced at or above this amount.\n\n💡 **TIP:** Leave empty for no lower bound. Combine with Max Price to scrape a specific price band."
          },
          "highestPrice": {
            "title": "💲 Max Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "💲 **PRICE CEILING (USD):** Only return products priced at or below this amount.\n\n💡 **TIP:** Leave empty for no upper bound. Combine with Min Price to scrape a specific price band."
          },
          "reviewScore": {
            "title": "⭐ Minimum Review Score (Advanced filter)",
            "type": "string",
            "description": "⭐ **RATING FILTER (Advanced):** Restrict results by minimum average review score, using Olive Young's own review-score facet value (e.g. `4` for 4★ and up).\n\n🔧 **HOW TO GET IT:** The review-score facets returned by a run list the available values. Paste one here to narrow the next run.\n\n💡 **TIP:** Leave empty for no rating filter."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}