RealdataAPI Store - Browse tools published by our community and use them for your projects right away
logo

Sephora Data Scraper - Scrape Skincare, Beauty & Makeup Product Data

RealdataAPI / sephora-scraper

Scrape skincare, makeup, and beauty product data from the leading Sephora platform using Sephora Data Scraper. The scraper allows you to collect product details, categories, prices, and other information in a customized dataset. It is available in the USA, UK, UAE, Canada, Australia, France, Germany, Mexico, Singapore, Italy, and other countries.

What is a Sephora Scraper?

It is a data scraping tool to extract makeup, beauty, and skincare product data from Sephora, the leading ecommerce platform for this category.

What Are the Features of Sephora Data Scraper?

  • It supports extracting product details, like product images, prices, SKU information, and prices from the platform.
  • It supports scraping product categories.

To avoid floating calculations of prices, it multiplies product prices by 100.

To Do

  • It supports collecting product reviews.
  • It supports collecting video information.

Input Parameters of Sephora Scraper

It would be significant to feed JSON-based inputs to the Sephora data Scraper with the following input fields:

Field Type Description
startUrls Array It is an input field with starting URLs that you can use to start the scraper. It supports product page links, category page links, and other URLs.
proxy Object Choose the proxy server to support the scraper execution.
maxConcurrency Object With this input field, the scraper runs at the maximum concurrency and avoids blocking from the Sephora website.

Check out the below example:

{ "startUrls": [ { "url": "https://www.sephora.com/shop/eyeshadow-palettes" } ], "proxy": { "useRealdataAPIProxy": true }, "maxConcurrency": 5 }

Sample Inputs of Sephora Scraper

Product Category Data Scraping

{ "startUrls": [ { "url": "https://www.sephora.com/shop/mascara" } ], "proxy": { "useRealdataAPIProxy": true } }

Product Detail Scraping

{ "startUrls": [ { "url": "https://www.sephora.com/product/make-no-mistake-foundation-concealer-stick-P420440?skuId=1887520&icid2=products%20grid:p420440" } ], "proxy": { "useRealdataAPIProxy": true } }

Data Storage

The data scraper saves the scraped product information in JSON-supported Sephora dataset format.

{ "source": { "id": "P420440", "crawlUrl": "https://www.sephora.com/product/make-no-mistake-foundation-concealer-stick-P420440?skuId=1887520&icid2=products%20grid:p420440", "canonicalUrl": "https://www.sephora.com/product/make-no-mistake-foundation-concealer-stick-P420440", "retailer": "SEPHORA", "currency": "USD" }, "brand": "SEPHORA COLLECTION", "title": "Make No Mistake Foundation & Concealer Stick", "description": "<b>Coverage:</b><br>&#10004; Medium<br><br><b>Skin type:</b><br>&#10004; Combination<br>&#10004; Oily<br><br><b>Finish:</b><br>&#10004; Matte<br><br><b>What it is:</b><br> A medium- to full-coverage foundation and concealer stick with a natural matte finish.<br><br><b>What it does:</b><br> This two-in-one multitasker can be used as both foundation and concealer. The creamy formula does not settle into fine lines and wrinkles, and the stick format is perfect for easy on-the-go application.<br><br><b>What else you need to know:</b><br>This product is noncomedogenic and is not tested on animals.<br><br><b>Ingredient Note: </b>\n<br>All Sephora Collection products comply with the most rigorous international laws on product safety&#151;going beyond satisfying European and US Cosmetics regulations. They also satisfy the strictest internal requirements of development, quality, traceability, and safety, and lead by example with a Restricted Substance List that excludes more than 1,400 substances.", "categories": [ "Makeup", "Face", "Foundation" ], "options": [ { "type": "Color", "values": [ { "id": "3 Beechwood", "name": "3 Beechwood", "icon": "https://www.sephora.com/productimages/sku/s1887405+sw.jpg" }, { "id": "15 Mahogany", "name": "15 Mahogany", "icon": "https://www.sephora.com/productimages/sku/s1887520+sw.jpg" }, { "id": "16 Ebony", "name": "16 Ebony", "icon": "https://www.sephora.com/productimages/sku/s1887538+sw.jpg" } ] }, { "type": "Size", "values": [ { "id": "0.41 oz/ 11.6 g", "name": "0.41 oz/ 11.6 g" } ] } ], "variants": [ { "id": "1887405", "sku": "1887405", "price": { "current": 800, "original": 2000, "stockStatus": "OutOfStock" }, "options": [ "3 Beechwood", "0.41 oz/ 11.6 g" ] }, { "id": "1887520", "sku": "1887520", "price": { "current": 800, "original": 2000, "stockStatus": "InStock" }, "options": [ "15 Mahogany", "0.41 oz/ 11.6 g" ] }, { "id": "1887538", "sku": "1887538", "price": { "current": 800, "original": 2000, "stockStatus": "InStock" }, "options": [ "16 Ebony", "0.41 oz/ 11.6 g" ] } ], "medias": [ { "type": "Image", "url": "https://www.sephora.com/productimages/sku/s1887405-main-zoom.jpg?pb=2020-03-sephora-value-2020", "variantIds": [ "1887405" ] }, { "type": "Image", "url": "https://www.sephora.com/productimages/product/p420440-av-01-zoom.jpg", "alt": "SEPHORA COLLECTION Make No Mistake Foundation & Concealer Stick Image 2", "variantIds": [ "1887405", "1887520", "1887538" ] }, { "type": "Image", "url": "https://www.sephora.com/productimages/sku/s1887520-main-zoom.jpg?pb=2020-03-sephora-value-2020", "variantIds": [ "1887520" ] }, { "type": "Image", "url": "https://www.sephora.com/productimages/product/p420440-av-01-zoom.jpg", "alt": "SEPHORA COLLECTION Make No Mistake Foundation & Concealer Stick Image 2", "variantIds": [ "1887405", "1887520", "1887538" ] }, { "type": "Image", "url": "https://www.sephora.com/productimages/sku/s1887538-main-zoom.jpg?pb=2020-03-sephora-value-2020", "variantIds": [ "1887538" ] }, { "type": "Image", "url": "https://www.sephora.com/productimages/product/p420440-av-01-zoom.jpg", "alt": "SEPHORA COLLECTION Make No Mistake Foundation & Concealer Stick Image 2", "variantIds": [ "1887405", "1887520", "1887538" ] } ], "stats": { "reviewCount": 749, "rating": 3.9306, "lovesCount": 61136 } }

Is Scraping Skincare, Beauty & Makeup Product Data From Sephora Legal?

We have developed the Sephora API for ethical uses, and it scrapes publically available product data from the platform following necessary guidelines. However, you should scrape personal data only if you know the legitimacy of your data scraping reason.

Industries

Check out how industries use Sephora Scraper worldwide.

saas-btn.webp

E-commerce & Retail

To run the code examples, you need to have an RealdataAPI account. Replace < YOUR_API_TOKEN> in the code with your API token.

import { RealdataAPIClient } from 'RealdataAPI-Client';

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

// Prepare actor input
const input = {
    "startUrls": [
        {
            "url": "https://www.sephora.com/shop/eyeshadow-palettes"
        }
    ],
    "proxy": {
        "useRealdataAPIProxy": true
    },
    "maxConcurrency": 5
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("autofacts/sephora").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();
from RealdataAPI_client import RealdataAPIClient

# Initialize the RealdataAPIClient with your API token
client = RealdataAPIClient("<YOUR_API_TOKEN>")

# Prepare the actor input
run_input = {
    "startUrls": [{ "url": "https://www.sephora.com/shop/eyeshadow-palettes" }],
    "proxy": { "useRealdataAPIProxy": True },
    "maxConcurrency": 5,
}

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

# Fetch and print actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
# Set API token
API_TOKEN=<YOUR_API_TOKEN>

# Prepare actor input
cat > input.json <<'EOF'
{
  "startUrls": [
    {
      "url": "https://www.sephora.com/shop/eyeshadow-palettes"
    }
  ],
  "proxy": {
    "useRealdataAPIProxy": true
  },
  "maxConcurrency": 5
}
EOF

# Run the actor
curl "https://api.RealdataAPI.com/v2/acts/autofacts~sephora/runs?token=$API_TOKEN" \
  -X POST \
  -d @input.json \
  -H 'Content-Type: application/json'

Sephora Start Urls

startUrls Required Array

It is an essential input field to feed the starting links of the required data to the scraper. You can feed all URLs for pages like products or categories.

Proxy Setup

proxy Optional Object

Choose a proxy server to help your scraper to run successfully.

Scraper Maximum Concurrency

maxConcurrency Optional Integer

It helps the scraper to avoid blockages from the source website.

{
  "startUrls": [
    {
      "url": "https://www.sephora.com/shop/eyeshadow-palettes"
    }
  ],
  "proxy": {
    "useRealdataAPIProxy": true
  },
  "maxConcurrency": 5
}