Skip to main content
List endpoints that support pagination use page and limit query parameters.
GET /v1/posts?page=1&limit=25

Query parameters

ParameterDescription
pageOne-based page number. Defaults vary by endpoint, commonly 1.
limitNumber of items to return. Defaults vary by endpoint, commonly 10.

Response shape

Paginated responses use the existing YALG resource shape for the endpoint, typically with an item array and pagination metadata:
{
  "posts": [],
  "total": 0,
  "page": 1,
  "totalPages": 0
}
The item array name depends on the resource, such as posts, anecdotes, or another domain-specific collection.