example-data.com

pets / #175

ownerUserId
181
name
Rosalia
species
cat
breedId
gender
female
birthDate
2020-01-30
weightKg
3.9
color
Tortoiseshell
imageUrl
https://picsum.photos/seed/pet-175/600/600
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/pets/175" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/pets/175"
);
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/175"
);
const pet = (await res.json()) as Pet;
import requests

res = requests.get(
    "https://example-data.com/api/v1/pets/175"
)
pet = res.json()
{
  "id": 175,
  "ownerUserId": 181,
  "name": "Rosalia",
  "species": "cat",
  "breedId": null,
  "gender": "female",
  "birthDate": "2020-01-30",
  "weightKg": 3.9,
  "color": "Tortoiseshell",
  "imageUrl": "https://picsum.photos/seed/pet-175/600/600",
  "createdAt": "2020-10-05T21:40:21.179Z",
  "updatedAt": "2026-03-31T14:51:55.232Z"
}
Draftbit