Filter hierarchical content by delivery key
Release date: 19th February 2025
We've made some changes to the Hierarchy API and Filter API to provide developers with more flexibility when retrieving hierarchical content. Both APIs now support retrieving content using a delivery key as well as a content item id.
See When to use the Hierarchy API and Filter API for more details of the differences between each API.
Using the Filter API with delivery keysLink copied!
The Filter API can be used to list all the immediate children of a specified node in a hierarchy. The filter request can now contain either the content item id of the parent whose children you want to retrieve, or its delivery key.
To filter using the delivery key, use the new lookupBy
field in the filterBy
request, specifying the delivery key in the value.
A filter request to retrieve the immediate children of a hierarchy node with the delivery key "ideas-and-advice", that also have a ranking of 4, is shown below.
You can try out the query using the cURL
request shown below.
You can see in the response that 2 items match the filter request.
Using the Hierarchy API with delivery keysLink copied!
The Hierarchy API now supports retrieving hierarchy nodes using the parent node's delivery key as well as its content item id.
An example request to retrieve all children of the hierarchy node with the delivery key "ideas-and-advice" is shown below. We are requesting all nodes to a maximum level of 3.
The response to this request is shown below.