Go to example tasks

Fetch all pages from a nextUrl REST API

Follow an API's next-page links and collect its records in one Dataset. Try the small PokeAPI example first, then replace the URL and pagination settings with your API's values. Check the run summary before treating the export as complete.

Try for free
Paginated REST API Fetcher - Fetch All Pages
Paginated REST API Fetcher - Fetch All Pagesautoma-flow/paginated-rest-api-fetcher
Page
Item
Data
Source URL
+1 field
Text
Number
Boolean
List
Object

Input

API URL(required):https://pokeapi.co/api/v2/pokemon
HTTP headers
Query parameters:{1 field}
Items JSON path:results
Pagination(required)
Mode(required):nextUrl
Next URL JSON path:next
Max pages:2
Max items:40

Output fields

Page
Item
Data
Source URL
Fetched at

How it works

Sign up on Apify or log in

The Paginated REST API Fetcher - Fetch All Pages Actor is ready to run with the inputs already set for "Fetch all pages from a nextUrl REST API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Fetch all pages from a nextUrl REST API" task

The Paginated REST API Fetcher - Fetch All Pages Actor will start running based on the input automatically. You can also change all the input fields, like API URL, HTTP headers, and more, to match your specific use case.

Receive the "Fetch all pages from a nextUrl REST API" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as page, item, data, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Fetch all pages from a nextUrl REST API" task via API.

Image

Integrate "Fetch all pages from a nextUrl REST API" into your workflow

Connect "Fetch all pages from a nextUrl REST API" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay