example-data.com

pets / #124

ownerUserId
133
name
Kayli
species
bird
breedId
gender
female
birthDate
2014-07-02
weightKg
1.15
color
White
imageUrl
https://picsum.photos/seed/pet-124/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/124"
)
pet = res.json()
{
  "id": 124,
  "ownerUserId": 133,
  "name": "Kayli",
  "species": "bird",
  "breedId": null,
  "gender": "female",
  "birthDate": "2014-07-02",
  "weightKg": 1.15,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-124/600/600",
  "createdAt": "2024-07-09T12:07:42.146Z",
  "updatedAt": "2026-03-17T20:22:58.369Z"
}
Draftbit