example-data.com

pets / #53

ownerUserId
61
name
Hosea
species
dog
breedId
gender
female
birthDate
2017-05-13
weightKg
65.7
color
Spotted
imageUrl
https://picsum.photos/seed/pet-53/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/53"
)
pet = res.json()
{
  "id": 53,
  "ownerUserId": 61,
  "name": "Hosea",
  "species": "dog",
  "breedId": null,
  "gender": "female",
  "birthDate": "2017-05-13",
  "weightKg": 65.7,
  "color": "Spotted",
  "imageUrl": "https://picsum.photos/seed/pet-53/600/600",
  "createdAt": "2018-11-16T09:53:18.995Z",
  "updatedAt": "2024-10-06T00:23:36.100Z"
}
Draftbit