example-data.com

pets / #27

ownerUserId
36
name
Dannie
species
other
breedId
gender
male
birthDate
2014-04-27
weightKg
3.53
color
Gray
imageUrl
https://picsum.photos/seed/pet-27/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/27"
)
pet = res.json()
{
  "id": 27,
  "ownerUserId": 36,
  "name": "Dannie",
  "species": "other",
  "breedId": null,
  "gender": "male",
  "birthDate": "2014-04-27",
  "weightKg": 3.53,
  "color": "Gray",
  "imageUrl": "https://picsum.photos/seed/pet-27/600/600",
  "createdAt": "2020-06-10T09:56:35.059Z",
  "updatedAt": "2026-02-03T07:16:14.367Z"
}
Draftbit