example-data.com

pets / #195

ownerUserId
199
name
Abbie
species
cat
breedId
45
gender
female
birthDate
2017-09-20
weightKg
3.3
color
Tabby
imageUrl
https://picsum.photos/seed/pet-195/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/195"
)
pet = res.json()
{
  "id": 195,
  "ownerUserId": 199,
  "name": "Abbie",
  "species": "cat",
  "breedId": 45,
  "gender": "female",
  "birthDate": "2017-09-20",
  "weightKg": 3.3,
  "color": "Tabby",
  "imageUrl": "https://picsum.photos/seed/pet-195/600/600",
  "createdAt": "2022-04-27T05:17:29.622Z",
  "updatedAt": "2026-01-24T07:02:56.262Z"
}
Draftbit