# Fetch every page from a paginated API

Calls a paginated API you run, page after page, until a response has no next cursor, for up to 50 pages, and shows every page's response together as a list. Each call sends the previous page's response body, empty on the first, so your API can read the cursor from it. Replace the URL with your endpoint; it must answer JSON.

**Use cases:** Data processing, Automation

**Tags:** pagination, cursor, api, webhook, collect, integration

[Create this agent](https://seclai.com/agent-examples/create/page_through_api)

## How it starts

Trigger: dynamic input.

## Steps

- Repeat until the last page
  - Each try: Fetch the next page
  - This page's response
- Show every page
