Some text Мы ему заголовочков ещё добавим

Вот

Много-много текста

А потом ещё пару

Под

Л

Gets a list of Pages and/or Databases contained in the database, filtered and ordered according to the filter conditions and sort criteria provided in the request. The response may contain fewer than page_size of results. If the response includes a next_cursor value, refer to the pagination reference for details about how to use a cursor to iterate through the list.

📘

Wiki databases can contain both pages and databases as children.

Filters are similar to the filters provided in the Notion UI where the set of filters and filter groups chained by "And" in the UI is equivalent to having each filter in the array of the compound "and" filter. Similar a set of filters chained by "Or" in the UI would be represented as filters in the array of the "or" compound filter.

Filters operate on database properties and can be combined. If no filter is provided, all the pages in the database will be returned with pagination.

The above filters in the UI can be represented as the following filter object

Filter Object

{ "and": [ { "property": "Done", "checkbox": { "equals": true } }, { "or": [ { "property": "Tags", "contains": "A" }, { "property": "Tags", "contains": "B" } ] } ] }

In addition to chained filters, databases can be queried with single filters.

JSON

{ "property": "Done", "checkbox": { "equals": true } }

Sorts are similar to the sorts provided in the Notion UI. Sorts operate on database properties or page timestamps and can be combined. The order of the sorts in the request matter, with earlier sorts taking precedence over later ones.

The properties of the database schema returned in the response body can be filtered with the filter_properties query parameter.

<https://api.notion.com/v1/databases/[database_id]/query?filter_properties=[property_id_1]>