Hello Coda Community,
I’m working on extracting a large number of rows from a Coda table using n8n and pushing them to another service. My Coda table currently contains over 5000 rows.
However, I’m consistently only able to retrieve approximately 498-500 items per execution, even though my table clearly has many more rows.
Here’s what I’ve tried to resolve this:
- Using the native n8n Coda Node:
- Operation:
Get All Rowsfor a specific table. - The “Return All” toggle within the node is ON, which is intended to handle pagination automatically.
- Result: The node only outputs ~500 items.
- Using an n8n HTTP Request Node (Manual Pagination):
- Endpoint Structure:
https://coda.io/apis/v1/docs/{docId}/tables/{tableIdOrName}/rows - Method:
GET - Authentication:
Bearertoken viaAuthorizationheader. I’ve confirmed the API key is valid and has read permissions for the document/table (and have generated/re-checked keys multiple times to rule out credential issues). - Query Parameters:
limit: Set to500(the Coda API’s max per page).pageToken: Dynamically passed using an n8n expression ({{ $json.nextPageToken }}) to retrieve subsequent pages, with “Keep Empty Fields” enabled for the initial request.
- Workflow Logic: Implemented a
Do Whileloop in n8n to continuously fetch pages using thenextPageTokenfrom each response until no more tokens are returned. - Result: Despite the loop and
pageTokenparameter, the process still seems to hit a ceiling at around 498-500 items, and anextPageTokenfor further data does not appear in the API response, even though many more rows exist in the actual Coda table.
My questions for the community are:
- Is there any specific behavior of the Coda API’s
rowsendpoint that might prevent thenextPageTokenfrom being returned after the first page (or first ~500 items) when dealing with large datasets? - Are there any less common API parameters or best practices for handling pagination for very large tables in Coda that I might be missing?
- Could there be a subtle Coda-side configuration or data state that could influence how the API reports total pages or provides
nextPageToken?
Any insights or troubleshooting tips would be greatly appreciated!
Thank you!