Data sources

Query a data source

Changed on
post/v1/data_sources/{data_source_id}/query

Request

  • Base URL
    https://api.notion.com
  • URL
    https://api.notion.com/v1/data_sources/{data_source_id}/query
  • Auth
    HTTP bearer

Path parameters

data_source_idstring required

Query parameters

filter_propertiesstring[]

Property names or IDs to include in each page's properties object. Other properties are left out. Repeat the parameter to pass more than one value, for example filter_properties=title&filter_properties=Status. Pages that aren't in a data source always return only title.

Headers

Notion-Version'2026-03-11' required

The API version to use for this request. The latest version is 2026-03-11.

Request body

start_cursorstring
page_sizeinteger
is_archivedboolean

Whether to return archived pages. When omitted or false, returns non-archived pages. When true, returns archived pages.

result_type'page' | 'data_source'

Optionally filter the results to only include pages or data sources. Regular, non-wiki databases only support page children. The default behavior is no result type filtering, in other words, returning both pages and data sources for wikis.

Response

type'page_or_data_source' required
page_or_data_sourceEmptyObject required
object'list' required
next_cursorstring nullable required
has_moreboolean required

Example response

{
  "results": [
    {
      "icon": {
        "emoji": "😀"
      }
    }
  ]
}

Changes

    • info

      added the required property //////////////// to the response with the status

    • info

      added the required property //////////////// to the response with the status

    • info

      added the required property //////////// to the response with the status

    • info

      added the required property //////////// to the response with the status