example-data.com

pet-breeds

pet-breeds

Page 3 of 4.

curl -sS \
  "https://example-data.com/api/v1/pet-breeds?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/pet-breeds?limit=25"
);
const { data, meta } = await res.json();
import type { PetBreed, ListEnvelope } from "https://example-data.com/types/pet-breeds.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/pet-breeds?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<PetBreed>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/pet-breeds",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 49,
      "name": "Turkish Angora",
      "slug": "turkish-angora",
      "species": "cat",
      "origin": "Turkey",
      "temperament": [
        "Affectionate",
        "Playful",
        "Intelligent"
      ],
      "lifeExpectancyYears": 14,
      "isHypoallergenic": false,
      "createdAt": "2023-08-30T06:26:02.561Z"
    },
    {
      "id": 50,
      "name": "Cornish Rex",
      "slug": "cornish-rex",
      "species": "cat",
      "origin": "United Kingdom",
      "temperament": [
        "Affectionate",
        "Athletic",
        "Inquisitive"
      ],
      "lifeExpectancyYears": 14,
      "isHypoallergenic": true,
      "createdAt": "2022-02-26T11:04:30.895Z"
    },
    {
      "id": 51,
      "name": "Holland Lop",
      "slug": "holland-lop",
      "species": "rabbit",
      "origin": "Netherlands",
      "temperament": [
        "Friendly",
        "Calm",
        "Sociable"
      ],
      "lifeExpectancyYears": 9,
      "isHypoallergenic": false,
      "createdAt": "2025-01-15T07:26:12.765Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 80,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/pet-breeds?page=3",
    "next": "/api/v1/pet-breeds?page=4",
    "prev": "/api/v1/pet-breeds?page=2"
  }
}
Draftbit