example-data.com

pets / #82

ownerUserId
96
name
Kristoffer
species
dog
breedId
27
gender
male
birthDate
2014-11-18
weightKg
62.1
color
Tan
imageUrl
https://picsum.photos/seed/pet-82/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/82"
)
pet = res.json()
{
  "id": 82,
  "ownerUserId": 96,
  "name": "Kristoffer",
  "species": "dog",
  "breedId": 27,
  "gender": "male",
  "birthDate": "2014-11-18",
  "weightKg": 62.1,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-82/600/600",
  "createdAt": "2021-05-24T09:04:01.018Z",
  "updatedAt": "2024-06-30T12:02:53.516Z"
}
Draftbit