> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flipeet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> List endpoints return results a page at a time, newest first.

Pass `page` (from 1) and `limit` (up to 100, default 20). The response has the results in `data.items` and the totals in `data.meta`.

```bash cURL theme={null}
curl "https://api.pay.flipeet.io/api/v1/merchant/transactions?page=2&limit=50" \
  -H "x-api-key: $FLIPEET_SECRET_KEY"
```

```javascript Node.js theme={null}
const response = await fetch("https://api.pay.flipeet.io/api/v1/merchant/transactions?page=2&limit=50", {
  method: "GET",
  headers: {
    "x-api-key": process.env.FLIPEET_SECRET_KEY,
  },
});
const { data } = await response.json();
```

```python Python theme={null}
import os
import requests

response = requests.get(
    "https://api.pay.flipeet.io/api/v1/merchant/transactions?page=2&limit=50",
    headers={"x-api-key": os.environ["FLIPEET_SECRET_KEY"]},
)
data = response.json()["data"]
```

```json Response theme={null}
{
  "message": "Transactions retrieved",
  "status": "success",
  "statusCode": 200,
  "data": {
    "items": [],
    "meta": { "total": 120, "page": 2, "limit": 50, "totalPages": 3 }
  }
}
```

Keep fetching while `page` is less than `totalPages`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.