Sephora Product API
Returns one Sephora product by id or URL: title, brand, description, price, rating, images, ingredients, and whether it is in stock.
GET /v1/sephora/productLast updated November 2026Maintained by the SocialCrawl team
When to use the Sephora Product API
Use it when you already have a product id (P427414) or a sephora.com/product URL. For discovery, start at search or category.
From the API reference
Returns one Sephora US product: title, brand, description, list price, rating, review count, images, ingredients, size, and in-stock flag. Pass the P-number (P427414) or the full sephora.com/product URL. Optional sku pins a size or colour variant. Optional language is en-US, en-CA, or fr-CA. For written reviews call GET /v1/sephora/reviews with the same product id. For store stock call GET /v1/sephora/availability with the sku.
Searching 69 platforms in parallel
What can you do with the Product API?
The Product endpoint gives you structured Sephora data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
# GET /v1/sephora/product: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 60: the API's own time limit for this endpoint.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 60 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/sephora/product?product_id=P427414" && cat response.json# GET /v1/sephora/product: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 60 # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/sephora/product"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"product_id": "P427414",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/sephora/product: 5 credits per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 60_000; // the API's own time limit for this endpoint.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/sephora/product");
url.searchParams.set("product_id", "P427414");
const body = await socialcrawl(url);
if (body) console.log(body.data);Parameters
| Parameter | Required | Description |
|---|---|---|
| product_id | No | Sephora product id, the P-number at the end of a product URL: sephora.com/product/the-ordinary-deciem-natural-moisturizing-factors-ha-P427414 is product id P427414. Product ids also come back on every row of GET /v1/sephora/search and GET /v1/sephora/category. |
| url | No | Full Sephora product URL, for example https://www.sephora.com/product/the-ordinary-deciem-natural-moisturizing-factors-ha-P427414. The product id is extracted from the path. |
| sku | No | Sephora sku id for a size or colour variant, for example 2210581. Comes back on search rows as currentSku.skuId and on product detail as currentSku.skuId. |
| language | No | Copy locale: en-US (default), en-CA, or fr-CA. (en-US | en-CA | fr-CA) |
What does the Sephora Product API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "sephora",
"endpoint": "/v1/sephora/product",
"data": {
"product": {
"id": "P427414",
"url": "https://www.sephora.com/product/the-ordinary-deciem-natural-moisturizing-factors-ha-P427414",
"title": "Natural Moisturizing Factors + Hyaluronic Acid Daily Moisturizer",
"description": "<p><strong>What it is: </strong>A hydrating formula with amino acids, dermal lipids, and hyaluronic acid.</p><p><br></p><p><strong>Skin Type:</strong> Normal, Dry, Combo, Oily</p><p><br></p><p><strong>Skincare Concerns: </strong>Dryness</p><p><br></p><p><strong>Highlighted Ingredients:</strong></p><p>Dermal Lipids: Keep the outer layer of the skin protected & offer lasting hydration.</p><p>Urea, Allantoin, Sodium PCA, Glycerin, and 11 Amino Acids: Provide intense lightweight hydration and comfort.</p><p>Saccharides: Plant-derived natural moisturizing sugars to support dermal water density.</p><p><br></p><p><strong>What it is formulated WITHOUT:</strong></p><p>- Parabens</p><p>- Sulfates</p><p>- Phthalates</p><p><br></p><p><strong>What Else You Need To Know:</strong></p><p>Regular use of Natural Moisturizing Factors + HA promotes smoother, softer skin with improved moisture retention. It is gentle enough for daily use, suitable for all skin types, and can be incorporated into any skincare regimen for enhanced hydration.</p><p><br></p><p>This product is an Allure Best of Beauty award winner.</p><p><br></p><p><strong>Clinical Results:</strong></p><p >Significantly boosts skin hydration</p><p>Keeps the outer layer of your skin protected and well-hydrated</p><p>Works to significantly improve skin barrier function with regular use</p><p><br></p>",
"seller": "The Ordinary",
"brand": "The Ordinary",
"price": {
"current": 12.5,
"original": null,
"currency": "USD"
},
"rating": {
"average": 4.0885,
"count": 2846
},
"image_urls": [
"https://www.sephora.com/productimages/sku/s2210581-main-zoom.jpg"
],
"availability": "in_stock",
"reviews_count": 2846,
"ext": {
"sephora": {
"sku": "2210581",
"size": "3.3 oz/100 mL",
"ingredients": " -Dermal Lipids (Phospholipids, Alpha/Beta/Gamma Fatty Acids, Triglycerides, Sterols, and Sterol Esters, Ceramide Precursors): Act as a direct topical supplement of the elements that keep the outer layer of the skin protected and offer lasting hydration with continued use.<br>-Urea, Allantoin, Sodium PCA, Glycerin, and 11 Amino Acids (Arginine, Aspartic Acid, Glycine, Alanine, Serine, Valine, Isoleucine, Proline, Threonine, Histidine, and Phenylalanine): Provide intense lightweight hydration and comfort.<br>-Saccharides (Trehalose, Maltose, and Fructose): Plant-derived natural moisturizing sugars to support dermal water density.<br>-Hyaluronic Acid: Acts as an enhanced hydrating delivery system.\r\n<br><br>Water, Caprylic/Capric Triglyceride, Cetyl Alcohol, Propanediol, Stearyl Alcohol, Glycerin, Sodium Hyaluronate, Arginine, Aspartic Acid, Glycine, Alanine, Serine, Valine, Isoleucine, Proline, Threonine, Histidine, Phenylalanine, Glucose, Maltose, Fructose, Trehalose, Sodium PCA, PCA, Sodium Lactate, Urea, Allantoin, Linoleic Acid, Oleic Acid, Phytosteryl Canola Glycerides, Palmitic Acid, Stearic Acid, Lecithin, Triolein, Tocopherol, Carbomer, Isoceteth-20, Polysorbate 60, Sodium Chloride, Citric Acid, Trisodium Ethylenediamine Disuccinate, Pentylene Glycol, Triethanolamine, Sodium Hydroxide, Phenoxyethanol, Chlorphenesin. \r\n",
"loves_count": 426040
}
}
}
},
"credits_used": 5,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"redacted": true
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the Sephora Product API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.
One schema, every platform
Query 69 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.
See your data before you code
Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usWhat does the Sephora Product API return?
When should I use the Sephora Product endpoint?
How much does the Sephora Product API cost?
What parameters does the Sephora Product API need?
How do I call the Sephora Product API?
Ask AI about SocialCrawl
Ready to scrape Sephora Product data?
Get your API key and start pulling Sephora data in under 60 seconds.
