POST
notion_data_sources_query.py
Requires
Read content. Pages by cursor: next_cursor is sent back as body.start_cursor.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get the rows of a data source, optionally filtered and sorted. The filter grammar is one condition per column type, composed with and and or up to two levels deep. Read the schema first if you do not know the column names — a filter naming a column that is not there is a 400.
from charter.packs import notion
result = await notion.data_sources_query.ainvoke({"dataSourceId": ...})
Read content. Pages by cursor: next_cursor is sent back as body.start_cursor.Tool.derived:narrowed = notion.data_sources_query.derived(
name="data_sources_query_narrowed",
drop={"body.filter", "body.sorts"},
)
| Field | Type | Description |
|---|---|---|
dataSourceId * | string | The ID of the data source. |
| Field | Type | Description |
|---|---|---|
filterProperties | string[] | Property IDs to return on each row, instead of all of them. The cheapest way to keep a wide table’s query readable. max 100 items |
| Field | Type | Description |
|---|---|---|
body | DataSourceQueryBody | The filter, sort and paging options. All optional. |
Was this page helpful?