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

Scrape Sephora product catalogs, search results, brands, prices, ratings, reviews, product details, and store availability. Choose a department, search any keyword, enrich selected products, or target international markets: 🇺🇸 🇫🇷 🇩🇪 🇮🇹 🇸🇬.

- **URL**: https://apify.com/fetchfinch/sephora-scraper.md
- **Developed by:** [Fetch Finch](https://apify.com/fetchfinch) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 dataset items

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?

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

🛍️ Scrape Sephora product catalogs, search results, brands, prices, ratings, reviews, product details, and store availability. Choose a department, search any keyword, enrich selected products, or target international markets: 🇺🇸 🇫🇷 🇩🇪 🇮🇹 🇸🇬.

The actor returns clean, structured Dataset records that are easy to export to JSON, CSV, Excel, or connect to another workflow.

### What you can collect

- Product catalog records with product IDs, SKUs, names, brands, prices, ratings, review counts, images, URLs, categories, and product badges.
- Full-text product discovery using searches such as `perfume`, `vitamin C serum`, or `Rare Beauty`.
- The Sephora brand directory with brand IDs, names, descriptions, and URLs.
- Product detail records with rich product information when enrichment is enabled.
- Customer review pages for selected products.
- Store-level availability around one or more latitude/longitude locations.
- Targeted international product and catalog data using EU locales and Asia market settings.

### Quick start

For a broad product snapshot, use Catalog and brands mode:

```json
{
  "mode": "catalog",
  "catalogScope": "core",
  "maxCatalogPages": 10
}
```

For keyword discovery, use Search products mode:

```json
{
  "mode": "search",
  "searchQueries": ["perfume"],
  "maxSearchPages": 25
}
```

For known products, use Product details mode:

```json
{
  "mode": "details",
  "detailProductIds": ["P442563", "P123456"],
  "maxDetails": 2
}
```

### Ready-to-run examples

Try a preconfigured task to see the actor in action. Each example opens with focused inputs and the most relevant Dataset view:

- [Search Sephora for Perfume](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-search-perfume)
- [Search Sephora by Beauty Keywords](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-search-beauty-keywords)
- [Browse the Sephora Makeup Catalog](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-makeup-catalog)
- [Export the Sephora Brand Directory](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-brands-directory)
- [Get Detailed Sephora Product Data](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-product-details)
- [Collect Sephora Product Reviews](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-product-reviews)
- [Check Sephora Store Availability](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-store-availability)
- [Explore Sephora International Markets](https://apify.com/fetchfinch/sephora-scraper/examples/sephora-international-markets)

### Run modes

Set `emitChangesOnly` to `true` when you need an incremental feed. The actor then outputs only product and brand records whose meaningful data changed since the previous run, while still returning the run summary. Leave it off to receive a complete snapshot.

For recurring jobs, provide a stable `cacheStoreName` so the actor can reuse its cache and progress between runs. Leave it blank for isolated runs.

#### Catalog and brands

Collect product listings from Sephora departments and include the brand directory. The catalog cursor is resumable across repeated runs, making it suitable for scheduled collection.

Set `catalogScope` to:

- `core` for the primary departments: Makeup, Skincare, Hair, Fragrance, Bath & Body, Men, and Tools & Brushes.
- `all-roots` to include all available root categories.

Use `maxCatalogPages` to control how many listing pages are processed in one run. Each page can contain up to 60 products.

#### Brands only

Use `mode: "brands"` to export the complete brand directory without collecting product listings.

```json
{
  "mode": "brands"
}
```

#### Search products

Use one or more free-text queries. Search results are deduplicated by product ID when queries overlap.

```json
{
  "mode": "search",
  "searchQueries": ["vitamin C serum", "SPF 50", "Rare Beauty"],
  "maxSearchPages": 10
}
```

`maxSearchPages` applies to each search term. Results stop automatically when all available pages have been collected.

#### Product details

Provide known product IDs in `detailProductIds` to enrich specific products. The actor also maintains a detail queue from catalog and search work, so later runs can gradually enrich products discovered earlier.

```json
{
  "mode": "details",
  "detailProductIds": ["P442563"],
  "maxDetails": 1
}
```

#### Full

Use `mode: "full"` for catalog and brands collection plus gradual product-detail enrichment.

### Reviews and store availability

Enable reviews for selected products:

```json
{
  "mode": "details",
  "detailProductIds": ["P442563"],
  "maxDetails": 1,
  "includeReviews": true,
  "reviewProductIds": ["P442563"],
  "reviewPageSize": 20
}
```

Enable local availability checks by providing product IDs and locations:

```json
{
  "mode": "details",
  "detailProductIds": ["P442563"],
  "maxDetails": 1,
  "includeAvailability": true,
  "availabilityProductIds": ["P442563"],
  "locations": [
    { "latitude": 40.7128, "longitude": -74.0060, "radius": 25 }
  ]
}
```

### International markets

International collection is opt-in and supports targeted requests for:

- 🇫🇷 France (`fr-FR`)
- 🇩🇪 Germany (`de-DE`)
- 🇮🇹 Italy (`it-IT`)
- 🇸🇬 Singapore and other configured Asia markets using country and language codes

Example EU product lookup:

```json
{
  "enableInternational": true,
  "euLocales": ["fr-FR", "de-DE"],
  "euProductIds": ["781301", "123456"]
}
```

Example EU search:

```json
{
  "enableInternational": true,
  "euLocales": ["fr-FR"],
  "euQueries": ["parfum"]
}
```

For Asia markets, use objects containing `country` and `language`:

```json
{
  "enableInternational": true,
  "asiaMarkets": [
    { "country": "SG", "language": "en-SG" }
  ],
  "asiaQueries": [
    { "country": "SG", "language": "en-SG", "query": "serum" }
  ]
}
```

### Output

Every run writes structured records to the default Dataset. The Output tab includes dedicated views for:

- **Overview** — a practical mixed view of the collected records.
- **Products** — catalog, search, and enriched product records.
- **Brands** — brand directory records.
- **Reviews** — review records when enabled.
- **Availability** — store-level availability records when enabled.
- **Run summary** — collection counts, request usage, and errors.

Common product fields include:

`recordType`, `region`, `productId`, `skuId`, `brandName`, `displayName`, `productName`, `priceText`, `price`, `rating`, `reviewCount`, `heroImage`, `targetUrl`, `flags`, `categoryIds`, `listingPage`, `matchedQuery`, `snapshotType`, and `fetchedAt`.

International records additionally include fields such as `locale`, `country`, and `language`. Detail, review, availability, and run-summary records include their corresponding structured objects.

### Scheduling and integrations

Save a configuration as an Apify Task for repeated use, or attach it to an Apify Schedule. The Dataset can be exported directly or connected to downstream workflows through the Apify API and integrations.

Example CLI call:

```bash
apify call fetchfinch/sephora-scraper \
  --input '{"mode":"search","searchQueries":["perfume"],"maxSearchPages":5}'
```

Example API input:

```json
{
  "mode": "catalog",
  "catalogScope": "core",
  "maxCatalogPages": 10,
  "maxDetails": 4
}
```

# Actor input Schema

## `mode` (type: `string`):

Catalog refreshes product listings and brands. Brands only collects the complete brand directory. Search finds products by keyword. Details enriches the persistent queue. Full runs catalog and details. The default preview searches one page for perfume.

## `emitChangesOnly` (type: `boolean`):

Output only product and brand records whose meaningful data changed since the previous run. The run summary is always included. Leave off for a complete snapshot.

## `cacheStoreName` (type: `string`):

Optional stable name for reusing cache and progress across scheduled runs. Leave blank to keep state isolated to this run.

## `catalogScope` (type: `string`):

Core departments avoid curated category overlap. All roots maximizes coverage.

## `searchQueries` (type: `array`):

One or more product search terms, for example perfume, vitamin C serum, or Rare Beauty. Used when Run mode is Search.

## `maxSearchPages` (type: `integer`):

Maximum result pages to fetch for each search term. Results stop automatically when the search is exhausted.

## `maxCatalogPages` (type: `integer`):

Maximum listing pages in this run. Each page contains up to 60 products; the actor resumes from its saved cursor.

## `maxDetails` (type: `integer`):

Maximum detail requests from the persistent queue, including explicitly supplied IDs.

## `detailProductIds` (type: `array`):

Optional explicit US Sephora product IDs such as P442563. They are processed before the persistent queue.

## `enableInternational` (type: `boolean`):

Enables only the explicitly configured EU and Asia jobs below.

## `euLocales` (type: `array`):

Supported locales include fr-FR, de-DE, and it-IT.

## `euQueries` (type: `array`):

Targeted EU search terms. Full EU crawling is intentionally not enabled by default.

## `euProductIds` (type: `array`):

EU product IDs for detail requests, for example 781301.

## `asiaMarkets` (type: `array`):

Objects with country and language, for example {"country":"SG","language":"en-SG"}.

## `asiaQueries` (type: `array`):

Objects with country, language, and query for targeted Asia listing jobs.

## `asiaProductIds` (type: `array`):

Objects with country, language, and id for targeted Asia detail requests.

## `includeReviews` (type: `boolean`):

Fetch one paginated review page for explicitly selected US products.

## `reviewProductIds` (type: `array`):

US product IDs for review harvesting, such as P442563.

## `reviewPageSize` (type: `integer`):

Number of reviews requested per product review page.

## `includeAvailability` (type: `boolean`):

Fetch product availability for explicit products and locations.

## `availabilityProductIds` (type: `array`):

US product IDs. The cached catalog SKU is used when available.

## `locations` (type: `array`):

Objects with latitude, longitude, and optional radius in miles.

## Actor input object example

```json
{
  "mode": "search",
  "emitChangesOnly": false,
  "catalogScope": "core",
  "searchQueries": [
    "perfume"
  ],
  "maxSearchPages": 1,
  "maxCatalogPages": 1,
  "maxDetails": 0,
  "enableInternational": false,
  "euLocales": [
    "fr-FR"
  ],
  "includeReviews": false,
  "reviewPageSize": 10,
  "includeAvailability": false
}
```

# Actor output Schema

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

Complete Dataset output containing every emitted record.

## `products` (type: `string`):

Product catalog and detail records.

## `brands` (type: `string`):

Brand directory records.

## `reviews` (type: `string`):

Review records when review collection is enabled.

## `availability` (type: `string`):

Store-level availability records when location checks are enabled.

## `runSummary` (type: `string`):

Run counts, request usage, and sanitized errors.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fetchfinch/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("fetchfinch/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 '{}' |
apify call fetchfinch/sephora-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fetchfinch/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/0kidBwTzPycXRZn2H/builds/AnrEUvONgzVzGg13i/openapi.json
