example-data.com

pets / #43

ownerUserId
48
name
Ettie
species
dog
breedId
2
gender
male
birthDate
2025-05-04
weightKg
10.6
color
Spotted
imageUrl
https://picsum.photos/seed/pet-43/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/43"
)
pet = res.json()
{
  "id": 43,
  "ownerUserId": 48,
  "name": "Ettie",
  "species": "dog",
  "breedId": 2,
  "gender": "male",
  "birthDate": "2025-05-04",
  "weightKg": 10.6,
  "color": "Spotted",
  "imageUrl": "https://picsum.photos/seed/pet-43/600/600",
  "createdAt": "2023-11-09T00:59:46.253Z",
  "updatedAt": "2025-01-23T23:23:50.705Z"
}
Draftbit