Pagination
In this guide, we will look at how to work with paginated responses when querying the Reloadify API. By default, all list endpoints return 10 results per page. You can request up to 250 results per page by adding a per_page parameter to your requests.
All list endpoints support pagination using page and per_page query parameters. The response includes metadata to help you navigate through the results.
Query parameters
- Name
page- Type
- integer
- Description
The page number to retrieve. Defaults to
1.
- Name
per_page- Type
- integer
- Description
The number of results per page. Defaults to
10, maximum250.
Example using pagination
In this example, we request the second page of profiles with 20 results per page.
Request
GET
/v2/languages/:language_id/profilescurl -G https://app.reloadify.com/api/v2/languages/en/profiles \
-H "Authorization: Bearer {token}" \
-d page=2 \
-d per_page=20
Response
{
"data": [
{
"id": "prf_a1b2c3",
"email": "jane@example.com",
"first_name": "Jane",
"last_name": "Doe"
},
{
"id": "prf_d4e5f6",
"email": "john@example.com",
"first_name": "John",
"last_name": "Smith"
}
],
"meta": {
"current_page": 2,
"per_page": 20,
"total": 350
}
}