The Givebutter API uses pagination to break large result sets into manageable pages. This improves performance and allows you to retrieve data incrementally rather than loading thousands of records at once.Documentation Index
Fetch the complete documentation index at: https://docs.givebutter.com/llms.txt
Use this file to discover all available pages before exploring further.
Pagination Response Format
All paginated endpoints return responses in this structure:Pagination Metadata
Links Object
Thelinks object provides ready-to-use URLs for navigating pages:
| Field | Description | Value When Not Available |
|---|---|---|
first | URL to the first page of results | Never null |
last | URL to the last page of results | Never null |
prev | URL to the previous page (only if current page > 1) | null on first page |
next | URL to the next page (only if more pages exist) | null on last page |
Meta Object
Themeta object provides detailed pagination state:
| Field | Description | Example |
|---|---|---|
current_page | The current page number (1-indexed) | 2 |
from | The index of the first item on this page | 21 |
to | The index of the last item on this page | 40 |
last_page | The total number of pages | 5 |
per_page | Number of items per page | 20 |
total | Total number of items across all pages | 95 |
path | Base URL for the resource (without query params) | https://api.givebutter.com/v1/campaigns |
Query Parameters
Control pagination behavior with these query parameters:| Parameter | Description | Default | Max |
|---|---|---|---|
page | The page number to retrieve (1-indexed) | 1 | - |
per_page | Number of items per page | 20 | 100 |
The maximum
per_page value is 100. Requesting more than 100 items per page will return an
error.