The content endpoints provide additional endpoints to the Umbraco Content Delivery API to help with fetching product related content.
Gets a multi-variants contentBy default the variants property editor from Umbraco Commerce will only return attribute information with a product node to save on excessive payload sizes. The variants endpoint can be called to dynamically fetch an attibute combinations content only when it is requested.
idstring ยท uuidRequiredThe ID of the content item that has an Umbraco Commerce variants property editor defined on it
Example:dbf88b95-f3d0-4cbe-9edc-55fecd14ba80
attributestring[]Required
The attribute combination of the variant to return
Example:["key1:value1","key2:value2"]
expandstringOptional
Defines the properties that should be expanded in the response. Refer to the documentation for more details on this.
Example:{"value":""}
Accept-LanguagestringOptional
Defines the language to return. Use this when querying language variant content items.
Example:{"value":""}
Accept-SegmentstringOptional
Defines the segment to return. Use this when querying segment variant content items.
Example:{"value":""}
Api-KeystringOptional
API key specified through configuration to authorize access to the API.
PreviewbooleanOptionalWhether to request draft content.
Start-ItemstringOptionalURL segment or GUID of a root content item.
GET /umbraco/delivery/api/v1/content/item/{id}/variant?attribute=text HTTP/1.1
Host:
Accept: */*
{
"content": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"properties": {
"ANY_ADDITIONAL_PROPERTY": null
},
"name": "text",
"createDate": "2025-08-18T11:04:48.406Z",
"updateDate": "2025-08-18T11:04:48.406Z",
"route": {
"path": "text",
"startItem": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"path": "text"
}
}
},
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"isDefault": true
}
Last updated 4 months ago
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4