API Design
Pagination Response JSON Example
A JSON example of a paginated API response — includes cursor-based and offset-based pagination fields, total count, and navigation links. Copy-ready for REST and GraphQL APIs.
Field Reference
datarequiredarray<object>The current page of recordspagination.totalrequiredintegerTotal number of records matching the query across all pagespagination.pagerequiredintegerCurrent page number (1-based)pagination.perPagerequiredintegerNumber of records per pagepagination.hasNextPagerequiredbooleanWhether a subsequent page of results existspagination.nextCursoroptionalstring | nullOpaque Base64 cursor for cursor-based paginationlinksoptionalobjectHATEOAS navigation URLs for first, prev, self, next, and last pagesmeta.responseTimeoptionalintegerServer-side query duration in millisecondsVariants
MinimalOffset pagination with only page, perPage, and total — no cursors or links.
ExtendedCursor-based infinite scroll response with seek metadata and sort info.
Common Use Cases
- →Implementing infinite scroll or load-more UI patterns in mobile and web apps
- →Designing consistent pagination across all list endpoints in a REST API
- →Building admin dashboards that display large datasets in paginated tables
paginationcursoroffsetREST APIlist
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
API DesignREST API ResponseGeneric REST API response wrapper with data payload, status, and pagination meta.API DesignError ResponseREST API error JSON with status code, machine-readable error code, and validation details.API DesignUser ProfileStandard user profile JSON with personal info, address, and account metadata.