Sephora search API
Sephora products for a query with prices, ratings, review counts and flags.
GET /v1/sephora/search2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/sephora/search?query=lipstick",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "query": "lipstick", "category_id": null, "title": "lipstick", "page": 1, "page_size": 12, "total": 172, "products": [ { "productId": "P510799", "displayName": "M·A·Cximal Silky Matte 12HR Wear Lipstick", "brandName": "MAC Cosmetics", "currentSku": { "imageAltText": "MAC Cosmetics - M·A·Cximal Silky Matte 12HR Wear Lipstick", "isAppExclusive": false, "isBI": false, "isLimitedEdition": false, "isLimitedTimeOffer": false, "isNew": false, "isOnlineOnly": false, "isSephoraExclusive": false, "listPrice": "$16.00 - $25.00", "salePrice": "$17.50", "…": "2 more fields" }, "heroImage": "https://www.sephora.com/productimages/sku/s2764421-main-zoom.jpg?imwidth=270", "image135": "https://www.sephora.com/productimages/sku/s2764421-main-zoom.jpg?imwidth=270", "image250": "https://www.sephora.com/productimages/sku/s2764421-main-zoom.jpg?imwidth=270", "image450": "https://www.sephora.com/productimages/sku/s2764421-main-zoom.jpg?imwidth=270", "altImage": "https://www.sephora.com/productimages/sku/s2764421-main-zoom.jpg?imwidth=270", "moreColors": 27, "…": "12 more fields" }, "… 3 more" ], "refinements": [ { "displayName": "In Store & Delivery", "type": "checkboxesWithDropDown", "values": [ { "…": "4 fields" }, "… 1 more" ] }, "… 1 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | Search words. Example: lipstick. |
pagequery | integer | |
page_sizequery | integer | Per page (default 60). |
sort_byquery | "best_selling" | "top_rated" | "price_low" | "price_high" | "new" | best_selling (Sephora’s order, default), top_rated, price_low, price_high (order the page), new (new items on the page). One of best_selling, top_rated, price_low, price_high, new. |
min_pricequery | number | null | |
max_pricequery | number | null | |
min_ratingquery | number | null |
Response fields
200 with a SephoraListing, in Sephora’s own catalog JSON and its review provider’s records.
| Field | Type | Description |
|---|---|---|
query | string | null | |
category_id | string | null | |
title | string | null | |
page | number | |
page_size | number | |
total | number | null | |
products | object[] | |
refinements | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | A page of products. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The product or category does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Sephora is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Sephora is a trademark of Sephora USA, Inc. We are not affiliated with or endorsed by Sephora.