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

Page by key

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

Page by key: return items with an id greater than after_id.

The response is { data, has_more, next_after_id }.

Parameters 2

NameTypeDescription
after_idquery · integer (int32)Last id seen, sent as the after_id query parameter (default 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/keyset?after_id=10&limit=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "data": [
    {
      "id": 11,
      "name": "Smart Lamp",
      "category": "electronics",
      "price": 12.11,
      "createdAt": "2026-01-07T07:00:00Z"
    },
    {
      "id": 12,
      "name": "Compact Headset",
      "category": "outdoors",
      "price": 49.12,
… (13 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.