Back to JSON Pipeline

Pipeline template

Combine paginated API responses

Extract result arrays from paginated API responses and flatten them into one clean JSON array for export, analytics, or downstream workflows.

Runnable example

Run this template on your JSON

Start from the sample input, edit the JSON, and open the same pipeline in the visual editor when you want to customize it.

[
{
"page": 1,
"next": "/customers?page=2",
"data": [
{
"id": "cus_001",
"email": "maya@example.com"
},
{
"id": "cus_002",
"email": "liam@example.com"
}
]
},
{
"page": 2,
"next": "/customers?page=3",
"data": [
{
"id": "cus_003",
"email": "ava@example.com"
},
{
"id": "cus_004",
"email": "noah@example.com"
}
]
},
{
"page": 3,
"next": null,
"data": [
{
"id": "cus_005",
"email": "ella@example.com"
},
{
"id": "cus_006",
"email": "owen@example.com"
}
]
}
]
Output
Output will appear here after you run the pipeline.

Love the result?

Use this exact pipeline in your app, backend, or LLM workflow.

No setup needed. Works with curl, Node, Python.

Uses example data. For edited input, copy from the playground.

Read integration guide

Need multiple transformations?

Try ForgeJSON Pipeline to combine extraction, cleanup, normalization, validation, and export steps into one reusable workflow.

Try ForgeJSON Pipeline