Overview
This recipe shows you how to retrieve every card from a board by paginating through pages of results until you get an empty response.What you need
- Your API key and board ID from Card Sources > API
Step 1: Fetch the first page
Cards are returned 200 at a time, starting at page0.
Step 2: Paginate until empty
Keep incrementing the page number until you receive an empty array. That signals you have retrieved everything.Step 3: Work with the data
Each card is a JSON object containing its_id and all field values.
Things to watch out for
- There is no
totalcount orhasMoreflag in the response. An empty array is the only signal that you have reached the end. - Cards are sorted by last updated time. If records are being updated while you paginate, you may see duplicates across pages. For a clean sync, consider using webhooks to capture changes in real time instead.
- Add a small delay between page requests if you are fetching a very large board to avoid hitting rate limits.
Next steps
- Filter results to retrieve only the cards you need
- Build a custom report from the full data set
