Skip to content

APIs & errors · Fictional sample data

Paginated API response JSON Sample

A task-list response with three items and internally consistent page, total, and navigation metadata.

Use this dataset for pagination controls, api response parsing, list loading and empty states.

JSON preview

paginated-api-response.json · 901 bytes · formatted JSON

{
  "data": [
    {
      "id": "task-101",
      "title": "Review onboarding copy",
      "owner": "mira.chen@example.com",
      "completed": true,
      "priority": 2
    },
    {
      "id": "task-102",
      "title": "Add keyboard shortcuts",
      "owner": "noah.ellis@example.org",
      "completed": false,
      "priority": 1
    },
    {
      "id": "task-103",
      "title": "Document export options",
      "owner": null,
      "completed": false,
      "priority": 3
    }
  ],
  "pagination": {
    "page": 2,
    "perPage": 3,
    "totalItems": 8,
    "totalPages": 3,
    "hasPreviousPage": true,
    "hasNextPage": true,
    "nextPage": 3,
    "previousPage": 1
  },
  "links": {
    "self": "https://api.example.com/v1/tasks?page=2&perPage=3",
    "next": "https://api.example.com/v1/tasks?page=3&perPage=3",
    "previous": "https://api.example.com/v1/tasks?page=1&perPage=3"
  }
}

Notable fields

pagination
Page 2 of 3, with 3 items per page and 8 total items.
links
Example URLs matching the page metadata; they do not point to a live API.

This is fictional sample data created for development and testing. Names, addresses, identifiers, and example-domain URLs are illustrative. It is not sourced from real people or a live API.

If an in-page download is unavailable, download the static JSON file directly.

Try these related samples

  • API error response bodiesExample JSON bodies labeled with 400, 401, 404, 422, and 500 status codes for client-side testing.
  • E-commerce orderA fictional order with line items, consistent totals, shipping details, and a sandbox payment reference.

Useful JSON tools

Browse every JSON sample