example-data.com

pets / #167

ownerUserId
176
name
Mathias
species
cat
breedId
gender
female
birthDate
2016-01-13
weightKg
2
color
White
imageUrl
https://picsum.photos/seed/pet-167/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/167"
)
pet = res.json()
{
  "id": 167,
  "ownerUserId": 176,
  "name": "Mathias",
  "species": "cat",
  "breedId": null,
  "gender": "female",
  "birthDate": "2016-01-13",
  "weightKg": 2,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-167/600/600",
  "createdAt": "2024-02-28T10:41:37.280Z",
  "updatedAt": "2026-02-05T02:09:41.454Z"
}
Draftbit