example-data.com
Menu
Browse docs and collections

pets

pets

Page 4 of 9.

Overview

Request

curl example

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

JavaScript example

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

TypeScript example

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

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 73,
      "ownerUserId": 81,
      "name": "Manley",
      "species": "fish",
      "breedId": null,
      "gender": "male",
      "birthDate": "2016-12-12",
      "weightKg": 0.08,
      "color": "Gold",
      "imageUrl": "https://picsum.photos/seed/pet-73/600/600",
      "createdAt": "2017-07-07T07:03:50.310Z",
      "updatedAt": "2020-03-24T05:06:42.953Z"
    },
    {
      "id": 74,
      "ownerUserId": 82,
      "name": "Arianna",
      "species": "cat",
      "breedId": null,
      "gender": "male",
      "birthDate": "2019-07-13",
      "weightKg": 5.8,
      "color": "White",
      "imageUrl": "https://picsum.photos/seed/pet-74/600/600",
      "createdAt": "2013-01-25T19:26:34.845Z",
      "updatedAt": "2016-06-30T17:59:56.453Z"
    },
    {
      "id": 75,
      "ownerUserId": 83,
      "name": "Rogelio",
      "species": "dog",
      "breedId": 19,
      "gender": "female",
      "birthDate": "2021-05-21",
      "weightKg": 66.5,
      "color": "Brown",
      "imageUrl": "https://picsum.photos/seed/pet-75/600/600",
      "createdAt": "2025-09-14T17:43:31.935Z",
      "updatedAt": "2025-09-18T05:58:46.498Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 200,
    "totalPages": 9
  },
  "links": {
    "self": "/api/v1/pets?page=4&limit=24",
    "first": "/api/v1/pets?page=1&limit=24",
    "last": "/api/v1/pets?page=9&limit=24",
    "next": "/api/v1/pets?page=5&limit=24",
    "prev": "/api/v1/pets?page=3&limit=24"
  }
}