# Sephora Scraper (`getdataforme/sephora-scraper`) Actor

A Sephora scraper automatically extracts beauty product data from Sephora.com, including prices, brand information, reviews, ingredients, stock status, and promotional offers. It helps track beauty trends, monitor competitor pricing, and analyze customer sentiment for market research.

- **URL**: https://apify.com/getdataforme/sephora-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** E-commerce
- **Stats:** 58 total users, 1 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Sephora Scraper Documentation

### Overview

The **Sephora Scraper** is an Apify actor designed to extract comprehensive product information from Sephora.com. By providing a list of product URLs as input, the scraper retrieves details such as product name, brand, pricing, availability, reviews, and more.

***

### Input Configuration

The input for the Sephora Scraper should be a JSON object containing the following keys:

- `proxyConfiguration`: Specifies the proxy settings. Use the Apify residential proxy group for optimal performance.
- `urls`: An array of Sephora product URLs to scrape.

#### Input Example

```json
{
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "urls": [
        "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"
    ]
}
```

***

### Output

The scraper returns a JSON array of objects, where each object contains detailed information about the product, including:

- `url`: The product URL provided in the input.
- `name`: The name of the product.
- `brand`: The brand of the product.
- `product_offers`: An array of pricing and availability details for different SKUs, including:
  - `price`: The product price.
  - `priceCurrency`: The currency of the price.
  - `availability`: Availability status (e.g., InStock, OutOfStock).
  - `sku`: Stock Keeping Unit (SKU) identifier.
  - `image`: URL of the product image.
  - `seller`: The seller's name.
- `aggregateRating`: Overall rating details, including:
  - `reviewCount`: Total number of reviews.
  - `bestRating`: The highest possible rating.
  - `ratingValue`: The average rating value.
- `reviewCount`: Total number of reviews.
- `description`: A brief description of the product.
- `image`: An array of product images.
- `reviews`: An array of review details, including:
  - `id`: Review ID.
  - `name`: Reviewer's name.
  - `datePublished`: Date the review was published.
  - `description`: Content of the review.
  - `reviewRating`: Rating details, including `bestRating`, `ratingValue`, and `itemReviewed`.

#### Output Example

```json
[
    {
        "url": "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778",
        "name": "Soft Pinch Liquid Blush",
        "brand": "Rare Beauty by Selena Gomez",
        "product_offers": [
            {
                "price": "25.0",
                "priceCurrency": "USD",
                "availability": "http://schema.org/InStock",
                "sku": "2362143",
                "image": "https://www.sephora.com/productimages/sku/s2362143-main-hero.jpg",
                "seller": "Sephora"
            },
            {
                "price": "15.0",
                "priceCurrency": "USD",
                "availability": "http://schema.org/OutOfStock",
                "sku": "2761989",
                "image": "https://www.sephora.com/productimages/sku/s2761989-main-hero.jpg",
                "seller": "Sephora"
            }
        ],
        "aggregateRating": {
            "reviewCount": "12262",
            "bestRating": "5",
            "ratingValue": "4.5402",
            "itemReviewed": {
                "name": "Soft Pinch Liquid Blush"
            }
        },
        "reviewCount": "12262",
        "description": "Shop Rare Beauty’s Soft Pinch Liquid Blush at Sephora. This weightless, long-lasting liquid blush blends and builds beautifully for a soft, healthy flush.",
        "image": [
            "https://www.sephora.com/productimages/sku/s2362085-main-hero.jpg"
        ],
        "reviews": [
            {
                "id": "330906076",
                "name": ["vickyyvick"],
                "datePublished": ["2025-01-02"],
                "description": ["After using this product, it’s very nice on the skin. But, I will say that it leaves the mark of the liquid and it’s a little hard to blend 😭. So, take that as you will, but the product is good overall. I got it in the color ‘Bliss’."],
                "reviewRating": {
                    "bestRating": "5",
                    "ratingValue": "3",
                    "itemReviewed": "Soft Pinch Liquid Blush"
                }
            }
        ]
    }
]
```

***

### Usage Instructions

1. **Input Preparation**: Create a JSON file with the `proxyConfiguration` and `urls` array containing the product URLs to scrape.
2. **Actor Execution**: Run the Sephora Scraper actor on the Apify platform, providing the input JSON file.
3. **Retrieve Results**: After the execution, download the output JSON containing the scraped data.

***

### Support

For custom outputs, simplified formats, or to report any issues, please contact:

- **Email**: <support@getdataforme.com>
- **Contact Form**: <https://getdataforme.com/contact/>

When reaching out, please include a clear subject line and a detailed description of your request or issue.

***

Thank you for using the Sephora Scraper!

# Actor input Schema

## `urls` (type: `array`):

A list of URLs of the web pages you want to scrape data from.

## `proxyConfiguration` (type: `object`):

Specifies proxy servers that will be used by the scraper in order to hide its origin.

## Actor input object example

```json
{
  "urls": [
    "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/sephora-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/sephora-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.sephora.com/product/rare-beauty-by-selena-gomez-soft-pinch-liquid-blush-P97989778?skuId=2362085&icid2=homepage_productlist_chosenforyou_us_rwd_092022"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call getdataforme/sephora-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/sephora-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pK4B2Ns2jOkWPlBU7/builds/rjAu8zgGfVSsvnK8I/openapi.json
