example-data.com

pets / #24

ownerUserId
31
name
Audie
species
dog
breedId
gender
male
birthDate
2013-11-22
weightKg
47.6
color
White
imageUrl
https://picsum.photos/seed/pet-24/600/600
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/pets/24" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/pets/24"
);
const pet = await res.json();
import type { Pet } from "https://example-data.com/types/pets.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/pets/24"
);
const pet = (await res.json()) as Pet;
import requests

res = requests.get(
    "https://example-data.com/api/v1/pets/24"
)
pet = res.json()
{
  "id": 24,
  "ownerUserId": 31,
  "name": "Audie",
  "species": "dog",
  "breedId": null,
  "gender": "male",
  "birthDate": "2013-11-22",
  "weightKg": 47.6,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-24/600/600",
  "createdAt": "2025-02-17T18:45:33.023Z",
  "updatedAt": "2026-05-11T22:51:52.217Z"
}
Draftbit