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

Page with HAL hypermedia links

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

Page with HAL hypermedia links (0-based).

Content type is application/hal+json. Items are under _embedded.items, each with a self link; _links holds self, first, prev, next and last.

Parameters 2

NameTypeDescription
pagequery · integer (int32)Page number, starting at 0 (default 0). Default: 0.
sizequery · 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/hal?page=1&size=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/hal+json; charset=utf-8

{
  "_embedded": {
    "items": [
      {
        "id": 4,
        "name": "Eco Bottle",
        "category": "kitchen",
        "price": 153.04,
        "createdAt": "2026-01-03T12:00:00Z",
        "_links": {"self": {"href": "/api/pagination/items/4"}}
      },
      {
        "id": 5,
        "name": "Ultra Backpack",
… (24 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.