Skip to main content

A paged list is a structure that is used to describe paging details for listing and search results.

Properties

NameTypeFormatDescription
pageIndexnumberintThe index of the result set to return.
pageSizenumberintThe size of the result set to return. The default is 25.
totalCountnumberintThe total number of results available.
pageCountnumberintThe calculated page count based on the totalCount and pageSize.
itemsobject […]A container for the items being returned.

Example

The paged list properties provide the information required to implement paging

TypeScript
const entryList = await client.entries.search(query);

// Items
for (const item of entryList.items)
  console.log(item.entryTitle);

// Page details
console.log(entryList.pageIndex);
console.log(entryList.pageSize);
console.log(entryList.totalCount);
console.log(entryList.pageCount);

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request