example-data.com

pets / #151

ownerUserId
158
name
Jerrod
species
dog
breedId
1
gender
female
birthDate
2020-06-13
weightKg
4.1
color
Brown
imageUrl
https://picsum.photos/seed/pet-151/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/151"
)
pet = res.json()
{
  "id": 151,
  "ownerUserId": 158,
  "name": "Jerrod",
  "species": "dog",
  "breedId": 1,
  "gender": "female",
  "birthDate": "2020-06-13",
  "weightKg": 4.1,
  "color": "Brown",
  "imageUrl": "https://picsum.photos/seed/pet-151/600/600",
  "createdAt": "2024-10-13T08:55:50.841Z",
  "updatedAt": "2025-09-03T20:16:20.632Z"
}
Draftbit