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
dataarray<object>requiredThe current page of recordspagination.totalintegerrequiredTotal number of records matching the query across all pagespagination.pageintegerrequiredCurrent page number (1-based)pagination.perPageintegerrequiredNumber of records per pagepagination.hasNextPagebooleanrequiredWhether a subsequent page of results existspagination.nextCursorstring | nulloptionalOpaque Base64 cursor for cursor-based paginationlinksobjectoptionalHATEOAS navigation URLs for first, prev, self, next, and last pagesmeta.responseTimeintegeroptionalServer-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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.
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.