Pagination

Search requests return paginated results.

The API "search" endpoints return a result set of objects matching the parameters of the search request. Rightsline utilizes offset pagination to dictate the number of objects returned in each request. Pagination is controlled using the following two request parameters: start, rows.

Parameters

Parameter

Type

Default

Description

start

int

0

The zero-based index offset of the first object in the result set.

rows

int

100

The number of objects to return in the result set.

Example: Search for catalog items with a template ID = 1 (paginated)

{
    "query": {
        	"$and": [
            {
                "$eq": [
                    "templateid",
                    1
                ]
            }
        ]
    },
    "start": 0,
    "rows": 100
}

Last updated