example-data.com
Menu
Browse docs and collections

pet-breeds

pet-breeds

Page 3 of 4.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/pet-breeds?limit=25"

JavaScript example

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

TypeScript example

// Download once: mkdir -p types && curl -o types/pet-breeds.d.ts https://example-data.com/types/pet-breeds.d.ts
import type { PetBreed, ListEnvelope } from "./types/pet-breeds";

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

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/pet-breeds",
    params={"limit": 25},
)
data = res.json()

Response

{
  "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&limit=24",
    "first": "/api/v1/pet-breeds?page=1&limit=24",
    "last": "/api/v1/pet-breeds?page=4&limit=24",
    "next": "/api/v1/pet-breeds?page=4&limit=24",
    "prev": "/api/v1/pet-breeds?page=2&limit=24"
  }
}