> ## Documentation Index
> Fetch the complete documentation index at: https://product-discovery.developer.voyado.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Content list on search page

> Including content lists on a Search page with the REST API or the JavaScript library.

Querying the `search-page` endpoint using the `GET` method will return a product list in the search results. Including content list(s) in the search page results can be achieved by supplying a page configuration and sending the query using the `POST` method.

## Example

Below is an example of a query to the `search-page` endpoint that also includes a content list.

<Tabs>
  <Tab title="REST API">
    ```json title="Contents of request-body.json" icon="code" theme={null}
    {
      "contentLists": [
        { "id": "all-content" }
      ]
    }
    ```

    ```bash icon="terminal" theme={null}
    curl -X POST \
    "https://{cluster-id}.elevate-api.cloud/api/storefront/v3/queries/search-page?market=US&locale=en-US&sessionKey=4b116e34-0a7a-ce5d-5591-75c62f231967&customerKey=4b116e34-0a7a-ce5d-5591-75c62f231967&touchpoint=DESKTOP&q=store" \
    -H 'Content-Type: application/json' \
    -d @request-body.json
    ```
  </Tab>

  <Tab title="JS Library">
    ```javascript icon="js" theme={null}
    const api = esales({ clusterId: 'w00000000', market: 'US', locale: 'en-US', touchpoint: 'desktop' });
    const results = await api.query.searchPage(
      { q: 'store' },
      {
        contentLists: [
          { id: 'all-content' }
        ]
      }
    );
    ```
  </Tab>
</Tabs>

## Filtering content lists by type

To include only certain content lists, a content filter can also be specified in the request body, as shown in the example below. For more information, see [Content filters](/elevate/docs/integration/category-page-imports#content-filters).

The request body below limits the Elevate response to content with `type=inspiration`. The `type` attribute must be provided in the [catalog import](/elevate/docs/integration/catalog-imports/import-examples#adding-content) for the filter to take effect.

```json icon="code" theme={null}
{
  "contentLists": [
    {
      "id": "articles",
      "contentFilter": {
        "type": "inspiration"
      }
    }
  ]
}
```
