example-data.com

pets / #193

ownerUserId
196
name
Nola
species
cat
breedId
31
gender
male
birthDate
2012-03-24
weightKg
3.6
color
Tortoiseshell
imageUrl
https://picsum.photos/seed/pet-193/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/193"
)
pet = res.json()
{
  "id": 193,
  "ownerUserId": 196,
  "name": "Nola",
  "species": "cat",
  "breedId": 31,
  "gender": "male",
  "birthDate": "2012-03-24",
  "weightKg": 3.6,
  "color": "Tortoiseshell",
  "imageUrl": "https://picsum.photos/seed/pet-193/600/600",
  "createdAt": "2017-11-03T05:08:25.251Z",
  "updatedAt": "2024-10-03T08:34:17.724Z"
}
Draftbit