Buddy
- ownerUserId
-
Sam Hegmann-Jast @sam_hegmann-jast86
- name
- Buddy
- species
- bird
- breedId
- Canary
- gender
- male
- birthDate
- 2013-03-24
- weightKg
- 0.34
- color
- Yellow
- imageUrl
- https://picsum.photos/seed/pet-99/600/600
- createdAt
- updatedAt
Overview
pets / #99
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/99" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/99" ); const pet = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/pets.d.ts https://example-data.com/types/pets.d.ts
import type { Pet } from "./types/pets";
const res = await fetch(
"https://example-data.com/api/v1/pets/99"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/99"
)
pet = res.json() Response
{
"id": 99,
"ownerUserId": 114,
"name": "Buddy",
"species": "bird",
"breedId": 60,
"gender": "male",
"birthDate": "2013-03-24",
"weightKg": 0.34,
"color": "Yellow",
"imageUrl": "https://picsum.photos/seed/pet-99/600/600",
"createdAt": "2025-04-24T11:26:00.695Z",
"updatedAt": "2026-01-19T04:33:29.360Z"
}