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).

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: 0,
                to: 10
            },
            total_results: 1
        }
    }
}

Last updated