---
title: "Query collection data"
method: POST
path: "/api/sites/multiscreen/{site_name}/collection/{collection_name}/query-data"
tags: ["Site Collection Data (Rows)"]
---

# Query collection data

`POST /api/sites/multiscreen/{site_name}/collection/{collection_name}/query-data`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/sites/multiscreen/{site_name}/collection/{collection_name}/query-data`
- Auth: HTTP basic

Queries the collection's data, with optional field projection, filtering, search, sorting, and pagination.

## Path parameters

- `site_name` string, required
- `collection_name` string, required

## Request body

- PublicDataQueryRDT: Query parameters for filtering and paginating collection data
  - `fields` string[]: List of specific fields (projection) to return in the response. If not provided or left empty, all fields are returned.
  - `filters` PublicFilterQueryRDT[]: List of filters to apply to the collection data
    - `field` string, required: Field name to apply the filter on
    - `operator` 'EQ' | 'IN' | 'NE' | 'NIN' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BTWN', required: Filter operation to perform
    - `value` object, required: Value to filter by
  - `language` 'en' | 'es' | 'ja' | 'pt' | 'fr' | 'de' | 'tr' | 'en-gb' | 'it' | 'nl' | 'ar' | 'be' | 'bg' | 'bs-ba' | 'ca' | 'cs' | 'da' | 'el' | 'en-au' | 'en-ca' | 'es-ar' | 'es-cl' | 'es-co' | 'es-cr' | 'es-mx' | 'et' | 'fa' | 'fi' | 'fr-ca' | 'he' | 'hi' | 'hr' | 'hu' | 'hy' | 'id' | 'is' | 'ko' | 'lt' | 'lv' | 'mn' | 'mt' | 'nb' | 'af' | 'pa' | 'pl' | 'pt-br' | 'ro' | 'ru' | 'sk' | 'sl' | 'sq' | 'sv' | 'sw' | 'ta' | 'th' | 'uk' | 'vi' | 'zh' | 'cy' | 'tl' | 'zh-tw' | 'ka' | 'ms' | 'sr-rs' | 'gl' | 'eu' | 'az' | 'ps' | 'mi' | 'mk' | 'zh-hk' | 'km' | 'de-at' | 'pt-pt' | 'en-ie' | 'ga-ie' | 'en-be' | 'nl-be' | 'fr-be' | 'de-ch' | 'kl': Data language. Must be provided if the collection is multilingual.
  - `page` PublicPageQueryRDT: Pagination parameters for collection data queries
    - `pageNumber` integer: Page number (zero-based)
    - `pageSize` integer: Number of items per page (min: 1, max: 200, default: 50)
  - `search` string: Text search term to filter collection data
  - `sort` PublicSortQueryRDT[]: List of fields to sort the results by
    - `direction` 'ASC' | 'DESC', required: Sort direction options
    - `field` string, required: Field name to sort by
  - `statuses` PublicRowStatus[]: Statuses of the rows to return. If not provided or left empty, rows of every status are returned.

## Response `200`

OK

- PageResponsePublicSiteCollectionRowRDT
  - `limit` integer: Page size applied for request
  - `offset` integer: Offset applied for request
  - `results` PublicSiteCollectionRowRDT[]: Content payload
    - `data` object
    - `id` string
    - `page_item_url` string
    - `status` 'ACTIVE' | 'PREVIEW' | 'DRAFT': Where the row shows up. Supported values: - ACTIVE - on the published site and in the editor - PREVIEW - in the editor only - DRAFT - on neither, the row is kept in the collection table only A row created without a status is ACTIVE; an update or patch without one keeps the row's status.
  - `site_name` string: Owning site
  - `total_responses` integer: Total amount of elements matching requested filters

## Other responses

- `400`: Bad request. The request is malformed or failed validation.
- `401`: Unauthorized. The credentials are missing or invalid.
- `429`: Too many requests. The rate limit was exceeded.

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
