Skip to main content
← Changelog

Added Pagination to Events and Blog APIs

Events and blog endpoints now support page-based pagination with metadata including page numbers, totals, and navigation state.

Building multi-page listings meant fetching everything at once. The /events and /blog-posts REST endpoints now return consistent pagination metadata alongside results, making it straightforward to build multi-page event listings and blog archives.

Pagination parameters

Pass page and limit as query parameters to control which page of results you receive.

GET /api/v1/events?page=2&limit=25

Response shape

Every paginated response includes:

  • totalDocs, total number of matching records
  • totalPages, total number of pages at the requested limit
  • page, current page number
  • limit, records per page
  • hasNextPage / hasPrevPage, booleans for navigation state
  • nextPage / prevPage, page numbers for the adjacent pages, or null at boundaries
Improvement API