catalogInfo/siblings
Important: Only call parameters that you need. Personalization Cloud operates off a set of APIs that support many applications and clients concurrently. Personalization Cloud may update and enhance these APIs at any time. If you are building a mobile app, please use our mobile SDKs.
http://recs.richrelevance.com/rrserver/api/rrPlatform/catalogInfo/siblings
Note: The URL requires the API key and parameter(s) to function properly. See below for more information on example URL requests.
Description: returns the siblings of a given category.
Parameters
Note: All parameters are case sensitive.
Name | Required or Optional | Description |
---|---|---|
apiKey | Required | |
apiClientKey | Required | |
categoryId | Required |
Example Request
http://recs.richrelevance.com/rrserver/api/rrPlatform/catalogInfo/siblings?&apiClientKey=e9c9e05289be70e6&apiKey=showcaseparent&categoryId=Baby.Feeding
Example Response
{ "name": "Feeding", "id": "Baby.Feeding", "siblingCategories": [{ "hasChildren": true, "name": "Health & Safety", "id": "Baby.Health & Safety" }, { "hasChildren": true, "name": "Baby Days", "id": "Baby.Baby Days" }, { "hasChildren": true, "name": "Diapering & Potty", "id": "Baby.Diapering & Potty" }, { "hasChildren": true, "name": "Diapering", "id": "Baby.Diapering" }, { "hasChildren": true, "name": "Baby Specials", "id": "Baby.Baby Specials" }, { "hasChildren": false, "name": "Gifts for Baby", "id": "Baby.Gifts for Baby" }] }
Response Definition
The response will be a JSON object containing the following fields:
Field | Description |
id | The category ID |
name | The name of the category |
hasChildren | Does the category have subcategories? Valid values are true or false |
siblingCategories | The siblings of this category; an array of categoryInfo objects |