example-data.com

pet-breeds

pet-breeds

Page 4 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": 73,
      "name": "Ball Frog",
      "slug": "ball-frog",
      "species": "other",
      "origin": "South America",
      "temperament": [
        "Calm",
        "Nocturnal",
        "Quiet"
      ],
      "lifeExpectancyYears": 5,
      "isHypoallergenic": false,
      "createdAt": "2021-11-27T07:26:38.980Z"
    },
    {
      "id": 74,
      "name": "Hedgehog",
      "slug": "hedgehog",
      "species": "other",
      "origin": "Africa",
      "temperament": [
        "Shy",
        "Curious",
        "Solitary"
      ],
      "lifeExpectancyYears": 5,
      "isHypoallergenic": false,
      "createdAt": "2023-10-14T06:37:53.368Z"
    },
    {
      "id": 75,
      "name": "Sugar Glider",
      "slug": "sugar-glider",
      "species": "other",
      "origin": "Australia",
      "temperament": [
        "Social",
        "Active",
        "Affectionate"
      ],
      "lifeExpectancyYears": 12,
      "isHypoallergenic": false,
      "createdAt": "2024-06-16T11:28:22.853Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 80,
    "totalPages": 4
  },
  "links": {
    "self": "/api/v1/pet-breeds?page=4",
    "next": null,
    "prev": "/api/v1/pet-breeds?page=3"
  }
}
Draftbit