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 recordstotalPages, total number of pages at the requested limitpage, current page numberlimit, records per pagehasNextPage/hasPrevPage, booleans for navigation statenextPage/prevPage, page numbers for the adjacent pages, ornullat boundaries
Improvement API