Sephora category API
The products of a Sephora category with prices and ratings.
GET /v1/sephora/categories/{category_id}2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/sephora/categories/cat150006",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "query": null, "category_id": "cat150006", "title": "Skincare", "page": 1, "page_size": 12, "total": 3233, "products": [ { "productId": "P519160", "displayName": "Glazing Milk Hydrating Ceramide Facial Essence", "brandName": "rhode", "currentSku": { "biExclusiveLevel": "none", "imageAltText": "rhode - Glazing Milk Hydrating Ceramide Facial Essence", "isAppExclusive": false, "isBI": false, "isBestseller": true, "isLimitedEdition": false, "isLimitedTimeOffer": false, "isNew": false, "isOnlineOnly": false, "isSephoraExclusive": true, "listPrice": "$20.00 - $32.00", "skuId": "2898419" }, "heroImage": "https://www.sephora.com/productimages/sku/s2898419-main-zoom.jpg?imwidth=270&pb=clean-at-sephora", "altImage": "https://www.sephora.com/productimages/sku/s2898419-main-zoom.jpg?imwidth=270&pb=clean-at-sephora", "numberOfVariants": 1, "variationType": "Size", "swatchType": "Image - Rectangle", "swatchSelectors": [ { "skuId": "2898419", "heroImage": "https://www.sephora.com/productimages/sku/s2898419-main-zoom.jpg?imwidth=270&pb=clean-at-sephora", "sequence": 0 }, { "skuId": "3009313", "heroImage": "https://www.sephora.com/productimages/sku/s3009313-main-zoom.jpg?imwidth=270&pb=clean-at-sephora" } ], "onSaleData": "NONE", "rating": "3.959", "reviews": "3095", "pickupEligible": false, "sameDayEligible": false, "nextDayEligible": false, "shipToHomeEligible": false, "pickupNearbyEligible": false, "targetUrl": "/product/glazing-milk-P519160?skuId=2898419", "sponsored": false }, { "productId": "P507518", "displayName": "Faded Under Eye Brightening & Clearing Eye Masks", "brandName": "Topicals", "currentSku": { "biExclusiveLevel": "none", "imageAltText": "Topicals - Faded Under Eye Brightening & Clearing Eye Masks", "isAppExclusive": false, "isBI": false, "isBestseller": true, "isLimitedEdition": false, "isLimitedTimeOffer": false, "isNew": false, "isOnlineOnly": false, "isSephoraExclusive": false, "listPrice": "$22.00", "skuId": "2709467" }, "heroImage": "https://www.sephora.com/productimages/sku/s2709467-main-zoom.jpg?imwidth=270", "altImage": "https://www.sephora.com/productimages/sku/s2709467-main-zoom.jpg?imwidth=270", "numberOfVariants": 1, "variationType": "Size", "swatchType": "Image - Rectangle", "swatchSelectors": [ { "skuId": "2709467", "heroImage": "https://www.sephora.com/productimages/sku/s2709467-main-zoom.jpg?imwidth=270" } ], "onSaleData": "NONE", "rating": "4.2321", "reviews": "741", "pickupEligible": false, "sameDayEligible": false, "nextDayEligible": false, "shipToHomeEligible": false, "pickupNearbyEligible": false, "targetUrl": "/product/faded-eye-masks-P507518?skuId=2709467", "sponsored": false }, "… 2 more" ], "refinements": []}Parameters
| Name | Type | Description |
|---|---|---|
category_idpath · required | string | Category id. Example: cat150006. |
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 |
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 the category. |
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.