{
  "openapi": "3.0.1",
  "info": {
    "title": "Sephora Scraper — Beauty Products, Prices, SKUs & Ingredients",
    "description": "Extract beauty products, SKU variants, shades, sizes, list & sale prices, ratings, review counts, Clean at Sephora badges, skin concerns, and ingredients from Sephora (sephora.com). Supports US & Canada catalogs, keyword search, and full catalog sweeps.",
    "version": "1.0",
    "x-build-id": "ag6Pftn1eefL4VOBP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~sephora-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-sephora-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/logiover~sephora-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-sephora-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/logiover~sephora-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-sephora-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": {
          "feedMode": {
            "title": "Extraction Mode",
            "enum": [
              "search_and_category",
              "all_catalog"
            ],
            "type": "string",
            "description": "Choose 'search_and_category' to scrape targeted Sephora categories or search keywords, or 'all_catalog' to sweep all major Sephora beauty verticals.",
            "default": "search_and_category"
          },
          "granularity": {
            "title": "Row Granularity (SKUs vs Parent Products)",
            "enum": [
              "skus",
              "products"
            ],
            "type": "string",
            "description": "Choose 'skus' (default) to emit one deduplicated row per unique Sephora SKU variant (every shade, size, and finish with exact SKU pricing and stock), or 'products' for one row per parent P-code.",
            "default": "skus"
          },
          "market": {
            "title": "Sephora Storefront Market",
            "enum": [
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Choose Sephora United States (USD) or Sephora Canada (CAD).",
            "default": "US"
          },
          "categories": {
            "title": "Categories (Slugs or Category IDs)",
            "type": "array",
            "description": "Category slugs ('skincare', 'makeup', 'hair', 'fragrance', 'bath_body', 'mini_size', 'gifts', 'clean_beauty', 'luxury_beauty', 'korean_beauty', 'men', 'tools') or Sephora cat IDs (e.g., 'cat150006', 'cat140006').",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search Keywords / Brands / Ingredients (Optional)",
            "type": "array",
            "description": "Optional search keywords, brand names, or cosmetic ingredients (e.g., 'Rare Beauty', 'Summer Fridays', 'retinol', 'peptide', 'lip oil').",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Specific Sephora Product URLs or P-Codes (Optional)",
            "type": "array",
            "description": "Optional Sephora product URLs (e.g., 'https://www.sephora.com/product/the-ordinary-hyaluronic-acid-2-b5-hydrating-serum-P427419') or bare P-codes ('P427419'). Automatically enriches full regulatory INCI ingredients.",
            "items": {
              "type": "string"
            }
          },
          "onSaleOnly": {
            "title": "On-Sale / Discounted SKUs Only",
            "type": "boolean",
            "description": "Keep only items where salePrice < listPrice or flagged on sale.",
            "default": false
          },
          "inStockOnly": {
            "title": "In-Stock SKUs Only",
            "type": "boolean",
            "description": "Exclude out-of-stock SKUs.",
            "default": false
          },
          "cleanOnly": {
            "title": "Clean at Sephora Only",
            "type": "boolean",
            "description": "Keep only products carrying the Clean at Sephora certification.",
            "default": false
          },
          "priceMin": {
            "title": "Minimum Price (Optional)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional minimum salePrice filter."
          },
          "priceMax": {
            "title": "Maximum Price (Optional)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional maximum salePrice filter."
          },
          "includeFullInci": {
            "title": "Fetch Full Regulatory INCI Ingredients (Targeted Runs)",
            "type": "boolean",
            "description": "Fetch each product's Sephora PDP specification payload to populate complete regulatory INCI ingredient disclosures. Recommended for targeted runs (< 500 products); highlighted ingredients & callouts are already extracted at full speed by default.",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of unique deduplicated Sephora SKUs (or parent products) to collect.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}