API Style Guides · Example Payload

Aip 158 Pagination

PaginationREST

Aip 158 Pagination is an example object payload from API Style Guides, with 13 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

$schemaidguideleveltitlesummarycategoryrationaleappliesTosourceUrlexamplesrelatedRulestags

Example Payload

aip-158-pagination.json Raw ↑
{
  "$schema": "../json-schema/style-guide-rule-schema.json",
  "id": "aip-158",
  "guide": "style-guides:google-aip",
  "level": "MUST",
  "title": "Paginate List Methods with page_size and page_token",
  "summary": "List methods must accept page_size (int32) and page_token (string) request fields and return next_page_token in the response. An empty next_page_token indicates the end of the collection.",
  "category": "Pagination",
  "rationale": "Cursor-based pagination via opaque page_token avoids the offset-drift and consistency problems of skip/limit, and lets servers change indexing without breaking clients.",
  "appliesTo": ["REST", "gRPC"],
  "sourceUrl": "https://google.aip.dev/158",
  "examples": [
    {
      "kind": "good",
      "language": "http",
      "snippet": "GET /v1/books?page_size=50&page_token=CiAKGjB4MTIzNDU2 HTTP/1.1"
    }
  ],
  "relatedRules": ["ms-azure-pagination", "zalando-160"],
  "tags": ["Pagination", "REST"]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/aip-158-pagination"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.