search by category
Search for product using category ID and other paramters
Authorization
RapidApiKey X-RapidAPI-Key<token>
In: header
Query Parameters
categoryId*string
Get categoryId from Categories List endpoint
Length
1 <= lengthsortBy?string
Sort order for products
Value in
"BEST_SELLING" | "TOP_RATED" | "PRICE_LOW_TO_HIGH" | "PRICE_HIGH_TO_LOW" | "NEW"currentPage?string
Current page number
pageSize?string
Number of items per page
minPrice?string
Minimum price in $
maxPrice?string
Maximum price in $
Header Parameters
X-RapidAPI-Host*string
Default
"real-time-sephora-api.p.rapidapi.com"Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/search-by-category?categoryId=fragrance" \ -H "X-RapidAPI-Host: real-time-sephora-api.p.rapidapi.com"{
"success": true,
"data": null
}{
"success": false,
"message": "Invalid payload provided. Please ensure: 1) 'Content-Type: application/json' is included in your request headers 2) Request body contains valid JSON data.",
"error": {
"issues": [
{
"code": "too_small",
"minimum": 1,
"type": "array",
"inclusive": true,
"exact": false,
"message": "Array must contain at least 1 element(s)",
"path": [
"urls"
]
}
],
"name": "ZodError"
}
}{
"success": false,
"message": "Internal server error"
}