TrackRecordPro API Documentation TrackRecordPro

Pagination

When using the GET method, the API endpoints will only return data in a paged format. Currently, the size of the page is set at 30 items, and this cannot be increased by your program. This is set in place to give every user of the API fair usage and prevent anyone issuing overly-complex queries which may cause performance issues.

By default the first page you retrieve is the first, to retrieve other pages you must specify a filter value named "page". For example, to retrieve page two of the users, you would make a request to https://api.trackrecordpro.co.uk/3.0/users/page=2.

All GET results contain a pagination section within the results:

{
    "request": {
        "url": "\/3.0\/users\/page=2",
        "endpoint": "users",
        "requested_version": "3.0",
        "api_version": 3,
        "request_method": "Get",
        "timestamp": 1509693678,
        "session": null
    },
    "pagination": {
        "total_pages": 24,
        "total_records": 692
    },
    "response": [ ... ]
}

This contains the following values:

Value NameDescription
total_pagesThe total number of available pages, including the one you requested.
total_recordsThe total number of records available across all the available pages, including the page you requested.