Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Page or block idRequired | A block that says has_children holds more blocks of its own — read those with a second call on that block's id. |
| Blocks per call | number |
| Fetch every page | Follows Notion's cursor, and refuses past 5,000 blocks rather than answering a short list. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
blockId | textits `{{ }}` must give a string |
limit | number, by default 100 |
returnAll | true/false, by default false |
cursor | text |
Output
| Field | Type |
|---|---|
blocks | array |
blockCountBlocks in this answer | number |
hasMoreMore blocks are waiting behind this page | boolean |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- blockCount0
- blocks[]
- hasMorefalse
- nextCursor""
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"blockId": "<page or block id>",
"connection": "<connection id>",
"cursor": "",
"limit": 100,
"returnAll": false
},
"label": "List page content",
"type": "notion.listBlocks",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| ConnectionRequired | The Notion connection the step signs in with. |
| Page or block idRequired | A block that says has_children holds more blocks of its own — read those with a second call on that block's id. |
| Blocks per call | number |
| Fetch every page | Follows Notion's cursor, and refuses past 5,000 blocks rather than answering a short list. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
blockId | textits `{{ }}` must give a string |
limit | number, by default 100 |
returnAll | true/false, by default false |