---
title: Collections in views.json
slug: experience/collections-in-viewsjson
description: In this article, you learn which settings can be done to request a collection from the Catalog API with the views.json in Purple Experience Builder so that you can display it in your Purple Experience for App and/or Web
docTags: 
createdAt: 2022-10-11T13:27:26.000Z
---

Configure PXP to request a collection from the Catalog API to display its Content.&#x20;

## Preconditions

- Create a collection in Purple Hub, fill it with some content, and publish it to Catalog API.&#x20;

## Configuration

Create a list with Contents and define the contentContextKey according to the DataSource.&#x20;

To get the contents of a collection, use a CollectionContentDataSource. By default, it will make content available in the contextKey `collection-content`.&#x20;

![](https://app.archbee.com/api/optimize/ygR6KtT9QI_R0u3uKTJsm/C-Ykll02kJZjeIC0r7nlf-20251029-124742.png "Sample Configuration on Builder")

