example-data.com

pets / #154

ownerUserId
166
name
Haleigh
species
cat
breedId
45
gender
unknown
birthDate
2024-06-21
weightKg
4.9
color
Black
imageUrl
https://picsum.photos/seed/pet-154/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/154"
)
pet = res.json()
{
  "id": 154,
  "ownerUserId": 166,
  "name": "Haleigh",
  "species": "cat",
  "breedId": 45,
  "gender": "unknown",
  "birthDate": "2024-06-21",
  "weightKg": 4.9,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-154/600/600",
  "createdAt": "2019-07-09T21:04:47.191Z",
  "updatedAt": "2021-08-23T21:40:05.282Z"
}
Draftbit