example-data.com
Menu
Browse docs and collections

pets

pets

Browse 200 pets records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Showing first 6 of 24 on this page.

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": 1,
      "ownerUserId": 1,
      "name": "Juwan",
      "species": "reptile",
      "breedId": 71,
      "gender": "unknown",
      "birthDate": "2018-01-10",
      "weightKg": 5.1,
      "color": "Yellow",
      "imageUrl": "https://picsum.photos/seed/pet-1/600/600",
      "createdAt": "2014-07-16T00:37:39.435Z",
      "updatedAt": "2021-04-21T04:08:36.863Z"
    },
    {
      "id": 2,
      "ownerUserId": 3,
      "name": "Erik",
      "species": "dog",
      "breedId": 15,
      "gender": "male",
      "birthDate": null,
      "weightKg": 61.1,
      "color": "Spotted",
      "imageUrl": "https://picsum.photos/seed/pet-2/600/600",
      "createdAt": "2022-08-18T21:43:32.000Z",
      "updatedAt": "2022-09-02T00:49:05.092Z"
    },
    {
      "id": 3,
      "ownerUserId": 3,
      "name": "Isidro",
      "species": "dog",
      "breedId": 20,
      "gender": "male",
      "birthDate": "2017-03-09",
      "weightKg": 43.2,
      "color": "Tan",
      "imageUrl": "https://picsum.photos/seed/pet-3/600/600",
      "createdAt": "2025-11-08T04:56:44.598Z",
      "updatedAt": "2026-04-18T23:59:34.579Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 200,
    "totalPages": 8
  },
  "links": {
    "self": "/api/v1/pets?page=1",
    "first": "/api/v1/pets?page=1",
    "last": "/api/v1/pets?page=8",
    "next": "/api/v1/pets?page=2",
    "prev": null
  }
}

View full response →