example-data.com

pets / #194

ownerUserId
196
name
Daisy
species
dog
breedId
18
gender
male
birthDate
2016-04-18
weightKg
36.2
color
Black
imageUrl
https://picsum.photos/seed/pet-194/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/194"
)
pet = res.json()
{
  "id": 194,
  "ownerUserId": 196,
  "name": "Daisy",
  "species": "dog",
  "breedId": 18,
  "gender": "male",
  "birthDate": "2016-04-18",
  "weightKg": 36.2,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-194/600/600",
  "createdAt": "2015-11-16T14:13:32.246Z",
  "updatedAt": "2022-06-24T16:16:01.955Z"
}
Draftbit