The type of items in the data array PaginatedResponse
Array of items for current page.
Contains the actual data items for the current page/offset. Array length may be less than limit on last page or when fewer items match the query.
Type: Array of generic type T Min Length: 0 (empty result set) Max Length: limit value (typically 50-100)
// Full page
data: [
{ id: "person/1", name: "MEP 1", ... },
{ id: "person/2", name: "MEP 2", ... },
// ... 48 more items for limit=50
]
Indicates if more items exist beyond current page.
Boolean flag for easy "load more" / "next page" logic. True if there are more items to fetch after the current page. False on last page or when all results fit on current page.
Calculation: (offset + data.length) < total
Maximum items per page (requested page size).
The limit value that was requested for this query. Determines maximum array size for data field. Actual data length may be less on last page or with filtered queries.
EP API Field: Query parameter limit
Min Value: 1
Max Value: 100 (enforced by API)
Default: 50
Recommended: 50-100 for performance
Number of items skipped (pagination offset).
Number of items to skip from the beginning of the result set.
Used for offset-based pagination. To get page N, use
offset = (N - 1) * limit.
EP API Field: Query parameter offset
Min Value: 0 (first page)
Max Value: total - 1
Calculation: (currentPage - 1) * limit
Total number of items matching the query.
Total count of all items across all pages that match the current query/filter criteria. Used for calculating total pages and showing "X of Y results" displays. Count includes items on all pages, not just current page.
Calculation: SELECT COUNT(*) FROM ... WHERE ...
Min Value: 0 (no matches)
Performance: Cached for efficiency
Generic paginated response wrapper for API results.
Standard pagination format used across all European Parliament MCP Server endpoints. Wraps arrays of data with pagination metadata enabling efficient iteration through large datasets. Implements offset-based pagination pattern.
Pagination Strategy: Offset-based (not cursor-based)
Performance Considerations:
Example
Example
Example
Example
Example
See