example-data.com

pets / #22

ownerUserId
30
name
Bailee
species
dog
breedId
29
gender
male
birthDate
2015-07-17
weightKg
59.7
color
Brown
imageUrl
https://picsum.photos/seed/pet-22/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/22"
)
pet = res.json()
{
  "id": 22,
  "ownerUserId": 30,
  "name": "Bailee",
  "species": "dog",
  "breedId": 29,
  "gender": "male",
  "birthDate": "2015-07-17",
  "weightKg": 59.7,
  "color": "Brown",
  "imageUrl": "https://picsum.photos/seed/pet-22/600/600",
  "createdAt": "2023-12-23T04:55:06.109Z",
  "updatedAt": "2026-05-09T02:23:24.884Z"
}
Draftbit