Show in graph
API

Product → API Products

Pagination

A technique for splitting large result sets into smaller pages that can be requested incrementally.

Motivation

Pagination solves the problem of returning large result sets in manageable pieces.

Where it fits

It belongs to API design, databases, and user interfaces.

Mental model

Instead of sending everything, the system sends one page or slice and gives the client a way to request more.

Important details

Offset pagination is simple; cursor pagination is often better for changing datasets and high-scale APIs.

Common mistakes

  • Returning unbounded lists from APIs.
  • Using offset pagination for feeds where items change frequently.