Skip to main content

Dynamic Content- Content Delivery 2, retrieving multiple items in the same request

Release date: 20th May 2020

In this release we've made some improvements to Content Delivery 2, our next generation delivery API. Content Delivery 2 now supports retrieving multiple content items and slots in the same request, making it even faster to get your content.

We've also increased the limit of content items or snapshots that can be added to a slot in an edition in a single action.

Content Delivery 2 API- retrieving multiple content items and slots
Link copied!

With the Content Delivery 2 API you can retrieve content by key as well as id and easily specify the format of JSON that the API returns. With the features introduced in this release, you can now choose to retrieve content items individually, or get multiple items in a single request, either by delivery key or id. Within the request you can also specify the parameters used to return each item.

Retrieving multiple items at once provides developers with greater flexibility and is particularly useful if you want to get all the items in a particular category, or page, for example.

The Content Delivery 2 API reference provides the complete definition of the API, including request format, parameters, example responses and error codes.

The API uses the OpenAPI format which can be imported into API tools such as such as Insomnia or Postman. This is a great way to get familiar with the API, the request format and responses, as shown in the example below.

You can import the Content Delivery 2 API specification into Insomnia or Postman. This example shows a request for multiple items together with the response

Adding multiple items to slots in one action- increased item limit
Link copied!

In a previous release we introduced a feature to allow you to add multiple content items or snapshots to a slot in an edition. We've increased the limit of items you can add to a slot, so you can now add up to 20 content items or snapshots to a slot at once.

You can now add up to 20 items or snapshots to a slot in an edition in a single action