Pagination

In this guide, we will look at how to work with paginated responses when querying the gospace API. The default limit for all responses is 25. However, this can be overwritten by adding a limit parameter to your requests (50000 max or 6Mb).

Pagination is supported on all endpoints that return an array of objects. In paginated responses, objects are nested in a data attribute. You can use the limit and skip query parameters to browse pages.

RESPONSE
{
    success: true,
    identifier: <request identifier>,
    data: {
        [response key]: [...],
        pagination: {
            current_results: {
                from: 1,
                to: 25
            },
            total_results: 100
        }
    }
}

Last updated