category data
Return categories and other data from a root category
Authorization
RapidApiKey X-RapidAPI-Key<token>
In: header
Query Parameters
categoryId*string
Category ID, get list category or categoryID from /category-list endpoint
Length
1 <= lengthHeader 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/category-data?categoryId=cat160006" \ -H "X-RapidAPI-Host: real-time-sephora-api.p.rapidapi.com"{
"success": true,
"data": {
"success": true,
"data": {
"categoryId": "cat160006",
"childCategories": [
{
"categoryId": "cat1230039",
"displayName": "Women",
"hasChildCategories": true,
"hasDropdownMenu": false,
"megaNavColumn": 0,
"targetUrl": "/shop/fragrances-for-women",
"url": "http://azre1-prod-es.sephora.com/v1/catalog/categories/cat1230039"
}
]
}
}
}{
"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"
}