Orvelt

Pagination

Page through collections and filter opinions and answers by date.

Page through collections

List operations that return many rows take page and limit query parameters. Each resource page lists the filters its operations accept, such as opinions and answers or delivery links.

Choose page and limit

ParameterDefaultAllowed values
page1Whole numbers from 1
limit10Whole numbers from 1 through 100

This request fetches the second page of 50 unanswered opinions, newest first:

import { opinions } from '@orvelt/business';

const result = await opinions.list({
  projectId: 'PROJECT_ID',
  page: 2,
  limit: 50,
  sort: 'newest',
  replyStatus: 'unreplied',
});

Read the pagination object

Paged responses include pagination:

{ "page": 2, "limit": 50, "total": 137, "totalPages": 3 }

Stop requesting pages when page equals totalPages. All filters combine with AND before pagination, so pagination.total counts only matching rows. query is a text search of up to 200 characters. Concurrent inserts or edits can shift page-based results.

The Python SDK returns a page wrapper for opinions.list, answers.list, and link.list. The response is in .result; .next() keeps the original filters and returns None after the last page. For async calls, use await page.next().

import { opinions } from '@orvelt/business';

for (let page = 1; ; page += 1) {
  const result = await opinions.list({ projectId: 'PROJECT_ID', page, limit: 100 });
  if (result.error) throw new Error(result.error.message);
  console.log({ count: result.data.opinions.length });
  if (page >= result.data.pagination.totalPages) break;
}

Filter by date

The opinion and answer list operations take dateFrom and dateTo as Unix timestamps in milliseconds.

Convert dates to milliseconds

const dateFrom = Date.parse('2026-01-01T00:00:00Z');
const dateTo = Date.parse('2026-02-01T00:00:00Z');

Dates must be whole-number timestamps from 0 through 8640000000000000. Either boundary may be omitted, and both are inclusive. dateFrom must not be later than dateTo, or the request returns 400. Convert time zones in your application so that repeated exports cover the same range, and deduplicate by resource ID when polling overlapping ranges.