Description
Call a paginated REST API and aggregate all pages into a single array.
logic_paginate · logic · Logic & Flow · Available · v1.0.0
Call a paginated REST API and aggregate all pages into a single array.
Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
urlTemplateURL template | string | yes | — https://api.example.com/items?page={{page}} | Inserisci {{page}} per strategia page-number o {{cursor}} per cursor. |
methodMetodo HTTP | enumGETPOST | yes | GET | GET = standard per API REST GraphQL paginate. POST = quando la pagina è nel body (alcune API enterprise come Salesforce Bulk). Per altri metodi usa `action_http` in un `logic_loop`. |
headersJsonHeaders HTTP | key-value | no | — | Header per ogni chiamata API. Esempi: `Authorization=Bearer {{secrets.API_TOKEN}}`, `Content-Type=application/json`, `Accept=application/vnd.api+json`. Tipico per API autenticate: imposta Bearer una volta, applicato a tutte le pagine. |
pageStrategyStrategia paginazione | enumpage-numbercursorlink-header | yes | page-number | page-number = ?page=N · cursor = ?after=<token> · link-header = legge Link header RFC 5988. |
dataPathPercorso dati nella risposta | string | no | — data.items | Dot-notation per estrarre l'array dalla risposta (es. data.items, results, payload.list). |
cursorPathPercorso cursore | string | no | — meta.next_cursor | Solo per strategy=cursor. Dove leggere il prossimo cursore nella risposta. |
maxPagesMax pagine (safety) | number | no | 100 | Limite hard per non chiamare API all'infinito. |
JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.
{
"id": "node-logic_paginate-1",
"defId": "logic_paginate",
"label": "Paginate (auto-aggregate)",
"config": {
"urlTemplate": "https://api.example.com/items?page={{page}}",
"method": "GET",
"pageStrategy": "page-number",
"maxPages": 100
}
}Available now on all FlowForge plans. Try it free without a credit card.
Start freeBrowse all nodes