example-data.com

pets / #165

ownerUserId
175
name
Alta
species
fish
breedId
68
gender
female
birthDate
2025-11-07
weightKg
0.34
color
Silver
imageUrl
https://picsum.photos/seed/pet-165/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/165"
)
pet = res.json()
{
  "id": 165,
  "ownerUserId": 175,
  "name": "Alta",
  "species": "fish",
  "breedId": 68,
  "gender": "female",
  "birthDate": "2025-11-07",
  "weightKg": 0.34,
  "color": "Silver",
  "imageUrl": "https://picsum.photos/seed/pet-165/600/600",
  "createdAt": "2022-05-31T06:06:27.033Z",
  "updatedAt": "2023-12-27T16:32:40.836Z"
}
Draftbit