API · Sephora
GET /sephora/categories/{category_id}
The products of a Sephora category.
| |
|---|
| Request | GET /v1/sephora/categories/{category_id} |
| Operation id | sephora.category.get |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The products of a Sephora category.
| Name | Type | Required | Description |
|---|
category_id | string | yes | Category id. Example: cat150006. |
| Name | Type | Required | Description |
|---|
page | integer | no | |
page_size | integer | no | Per page (default 60). |
sort_by | "best_selling" | "top_rated" | "price_low" | "price_high" | "new" | no | 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_price | number | null | no | |
max_price | number | null | no | |
| Status | Meaning | Schema |
|---|
200 | A page of the category. | SephoraListing |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The product or category does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Sephora is temporarily unavailable. Retryable; nothing was charged. | Error |
| 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[] | |
Errors use one shape everywhere; see Errors for every code and what to do.