Pular para o conteúdo

Pagination

Collection operations commonly use page-number pagination. Supply the page in page[number] and the requested number of resources in page[size].

page[number]positive integeroptional
The one-based page number. The default is normally 1.
page[size]positive integeroptional
The number of resources requested per page.

Default and maximum page sizes are resource-specific. Some older collection operations clamp an oversized page, while newer operations reject it. The operation page documents the behavior to rely on.

Most paginated resources return the selected page and total count in a nested meta.page object. Some resources use flat meta.page, meta.size, and meta.total members instead.

Use the response format shown by the resource operation. Do not infer that a short page is the final page when meta.total is available.

Start at page 1, retain the page size, and increment page[number] until the requested range reaches meta.total. Do not request multiple pages concurrently unless the integration can tolerate records moving between pages during the read.