example-data.com

pets / #32

ownerUserId
41
name
Clark
species
dog
breedId
16
gender
male
birthDate
2014-07-23
weightKg
32.9
color
Golden
imageUrl
https://picsum.photos/seed/pet-32/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/32"
)
pet = res.json()
{
  "id": 32,
  "ownerUserId": 41,
  "name": "Clark",
  "species": "dog",
  "breedId": 16,
  "gender": "male",
  "birthDate": "2014-07-23",
  "weightKg": 32.9,
  "color": "Golden",
  "imageUrl": "https://picsum.photos/seed/pet-32/600/600",
  "createdAt": "2024-01-22T20:16:54.048Z",
  "updatedAt": "2025-06-24T23:44:16.830Z"
}
Draftbit