example-data.com

pets / #126

ownerUserId
134
name
Schuyler
species
fish
breedId
63
gender
unknown
birthDate
2014-05-12
weightKg
0.5
color
Orange
imageUrl
https://picsum.photos/seed/pet-126/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/126"
)
pet = res.json()
{
  "id": 126,
  "ownerUserId": 134,
  "name": "Schuyler",
  "species": "fish",
  "breedId": 63,
  "gender": "unknown",
  "birthDate": "2014-05-12",
  "weightKg": 0.5,
  "color": "Orange",
  "imageUrl": "https://picsum.photos/seed/pet-126/600/600",
  "createdAt": "2023-07-04T08:10:10.104Z",
  "updatedAt": "2025-04-18T05:59:43.833Z"
}
Draftbit