example-data.com

pets / #30

ownerUserId
40
name
Ressie
species
fish
breedId
68
gender
unknown
birthDate
2015-03-14
weightKg
0.46
color
Silver
imageUrl
https://picsum.photos/seed/pet-30/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/30"
)
pet = res.json()
{
  "id": 30,
  "ownerUserId": 40,
  "name": "Ressie",
  "species": "fish",
  "breedId": 68,
  "gender": "unknown",
  "birthDate": "2015-03-14",
  "weightKg": 0.46,
  "color": "Silver",
  "imageUrl": "https://picsum.photos/seed/pet-30/600/600",
  "createdAt": "2025-05-16T22:55:18.683Z",
  "updatedAt": "2025-07-16T12:30:50.836Z"
}
Draftbit