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

Page with offset and limit

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

The response is { data, pagination: { offset, limit, total, hasMore } } plus X-Total-Count.

Parameters 2

NameTypeDescription
offsetquery · integer (int32)Number of items to skip (default 0; negative values become 0). Default: 0.
limitquery · 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/offset?offset=0&limit=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
X-Total-Count: 100

{
  "data": [
    {
      "id": 1,
      "name": "Smart Headset",
      "category": "electronics",
      "price": 42.01,
      "createdAt": "2026-01-01T21:00:00Z"
    },
    {
      "id": 2,
      "name": "Compact Speaker",
      "category": "outdoors",
      "price": 79.02,
… (12 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.