example-data.com

pets / #158

ownerUserId
168
name
Kiley
species
fish
breedId
66
gender
unknown
birthDate
2023-09-30
weightKg
0.42
color
Black
imageUrl
https://picsum.photos/seed/pet-158/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/158"
)
pet = res.json()
{
  "id": 158,
  "ownerUserId": 168,
  "name": "Kiley",
  "species": "fish",
  "breedId": 66,
  "gender": "unknown",
  "birthDate": "2023-09-30",
  "weightKg": 0.42,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-158/600/600",
  "createdAt": "2013-08-04T15:29:48.127Z",
  "updatedAt": "2017-11-24T21:11:23.557Z"
}
Draftbit