Sitecore API catalog/Components API//
- List components in a category
List component categories
List components in a cate...
Fetches the list of components in a specific component category.
Security
Bearer
- Production serverhttps://edge-platform.sitecorecloud.io/authoring/api/v1/component-categories/{category}/components
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
curl -i -X GET \
'https://edge-platform.sitecorecloud.io/authoring/api/v1/component-categories/Page%20Content/components?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
Array []
The component description.
Example:"A promo component is a content block designed to showcase promotions using a combination of text and visuals"
The component icon URL.
Example:"https://xmc-instance.sitecore-staging.cloud/-/icon/SXA_MDI/16x16/Promo.png"
Datasource template item path.
Example:"/sitecore/templates/Feature/Promos"
The component rendering parameters.
Example:
{ "ButtonText": "Click me!" }
The component settings.
Example:
{ "IsRenderingsWithDynamicPlaceholders": "true", "RandomNumber": "10" }
The component variants.
Example:
[ { "name": "Default", "id": "2492bac4-da07-4c86-87f0-9873d40e2276", "siteId": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, { "name": "Advanced", "id": "2f34355e-c52d-450e-b1b9-d4e9cbe64af2", "siteId": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } ]
Response
[ { "id": "2492bac4-da07-4c86-87f0-9873d40e2276", "name": "Hero Banner", "displayName": "Banner", "systemName": "HeroBanner", "description": "A promo component is a content block designed to showcase promotions using a combination of text and visuals", "category": { … }, "icon": "https://xmc-instance.sitecore-staging.cloud/-/icon/SXA_MDI/16x16/Promo.png", "datasourceTemplateField": "/sitecore/templates/Feature/Promos", "modelId": "/sitecore/templates/Feature/Promos", "renderingParameters": { … }, "settings": { … }, "variants": [ … ], "system": { … }, "type": "Code" } ]