# 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
- **Features:** Limited permissions
- **Stats:** 61 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sephora Scraper

![Sephora Scraper](https://i.ibb.co/BVb4yKMN/Sephora-Scraper.png)

### 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.
- `item_limit`: Maximum number of product URLs to scrape per run (default 10, `0` = no limit).

#### Input Example

```json
{
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "item_limit": 10,
    "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!

### Apify Actor

This actor is published on [Apify](https://apify.com).

#### Actor Details

- **Actor Name**: sephora-scraper
- **Organization**: See Apify Console
- **Console URL**: https://console.apify.com/organization/3JrVZU8vEdLyeD4hC/actors/lSbmGJBvRZlg4vjM8

#### Deployment

This actor is automatically deployed to Apify when changes are pushed to the `main` branch via GitHub Actions.

To run this actor:

1. Visit the Apify Console link above
2. Configure the input parameters
3. Click "Start" to run the actor

# Actor input Schema

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

Sephora product page URLs to scrape, e.g. https://www.sephora.com/product/...-P97989778

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

Proxy servers used by the scraper. Apify residential proxy is recommended.

## `item_limit` (type: `integer`):

Maximum number of product URLs to scrape per run. 0 means no limit.

## Actor input object example

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

# Actor output Schema

## `results` (type: `string`):

Scraped products from the dataset

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "item_limit": 10
};

// 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"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "item_limit": 10,
}

# 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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "item_limit": 10
}' |
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/sIlDW4rTdlmOIG0Mb/openapi.json
