Glossary

Pagination

Pagination splits a large dataset into pages, delivering it to the client in chunks. Returning 100,000 rows in a single query is a disaster for memory and network. Pagination solves this.

Two approaches

API response

Return metadata alongside data: current page, total items, links to next/previous. For cursor-based — a next cursor token.

{
  "data": [...],
  "meta": { "total": 1240, "per_page": 20, "next_cursor": "abc123" }
}