example-data.com

pets / #169

ownerUserId
177
name
Laisha
species
cat
breedId
31
gender
unknown
birthDate
2011-10-14
weightKg
4.4
color
Orange
imageUrl
https://picsum.photos/seed/pet-169/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/169"
)
pet = res.json()
{
  "id": 169,
  "ownerUserId": 177,
  "name": "Laisha",
  "species": "cat",
  "breedId": 31,
  "gender": "unknown",
  "birthDate": "2011-10-14",
  "weightKg": 4.4,
  "color": "Orange",
  "imageUrl": "https://picsum.photos/seed/pet-169/600/600",
  "createdAt": "2020-09-20T13:12:17.896Z",
  "updatedAt": "2025-02-07T04:16:21.318Z"
}
Draftbit