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

Page with an RFC 5988 Link header

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

Page with an RFC 5988 Link header (GitHub style, 1-based).

The body is a plain array. Navigation is in the Link header (rel="next", prev, first, last, with absolute URLs), plus X-Total-Count. A page past the end returns an empty array.

Parameters 2

NameTypeDescription
pagequery · integer (int32)Page number, starting at 1 (default 1). Default: 1.
per_pagequery · integer (int32)Page size, sent as the per_page query parameter (1-100, default 10). Default: 10.

Responses

200
One page.

Example

Request
curl -X GET "https://api.testingapis.com/api/pagination/link?page=1&per_page=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
X-Total-Count: 100
Link: <https://api.testingapis.com/api/pagination/link?page=2&per_page=3>; rel="next", <https://api.testingapis.com/api/pagination/link?pa…

[
  {
    "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,
    "createdAt": "2026-01-02T10:00:00Z"
… (1 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.