Hierarchy API- retrieve localized content
Release date: 28th May 2025
The Hierarchy API was introduced to allow you to get all the nodes at all levels of a hierarchy, and easily retrieve all descendants of a specified node. The API now supports the locale
parameter to allow you to retrieve hierarchy nodes with content localized for a particular locale.
Using the Hierarchy API with localesLink copied!
A simple site menu hierarchy, with field level localized string fields for the name and description, is shown below. We've entered values for the en-GB, fr-FR and de-DE locales.
To retrieve content for the fr-FR locale to 3 levels of the hierarchy, add the locale
parameter to the request and specify the fr-FR
locale:
The response is shown below:
Note that if the locale
parameter is not included, then content for all locales is returned.
The Hierarchy API supports the same locale filtering rules as the Content Delivery API. See Locale filtering for more details.