Skip to main content
All list endpoints in the Nectar API return paginated responses. This guide explains the response format and how to iterate through all pages.

Response envelope

Every paginated endpoint returns a JSON object with these fields. The item key name varies by endpoint (documents, usageData, meters, or connections).
Example (documents)

Query parameters

For most list endpoints, page size is fixed at 100 records per page. GET /connection/company/{id} also supports an optional limit parameter.

Example: iterate all pages

Tips

  • Check totalPages on the first response to estimate total requests needed.
  • If you request a page beyond the last page, the API returns the last valid page instead of an error.
  • All list endpoints use this same envelope format — documents, usage data, meters, and connections.

Next steps

Filtering and query parameters

Narrow results by date, site, commodity, and more

API getting started

Authentication and first request