TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Page with a Spring Data style envelope

GEThttps://api.testingapis.com/api/pagination/pageSign in to see this endpoint's URL

Page with a Spring Data style envelope (0-based page numbers).

The response has content, pageable, totalElements, totalPages, first, last and empty.

Parameters 2

NameTypeDescription
pagequery · integer (int32)Page number, starting at 0 (default 0). Default: 0.
sizequery · integer (int32)Page size (1-100, default 10). Default: 10.

Responses

200
One page.

Example

Request
curl -X GET "https://api.testingapis.com/api/pagination/page?page=1&size=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "content": [
    {
      "id": 4,
      "name": "Eco Bottle",
      "category": "kitchen",
      "price": 153.04,
      "createdAt": "2026-01-03T12:00:00Z"
    },
    {
      "id": 5,
      "name": "Ultra Backpack",
      "category": "home",
      "price": 190.05,
… (20 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.