Fanny
- ownerUserId
-
Enos Hamill @enos_hamill
- name
- Fanny
- species
- dog
- breedId
- Vizsla
- gender
- female
- birthDate
- 2012-09-23
- weightKg
- 7.9
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-57/600/600
- createdAt
- updatedAt
Overview
pets / #57
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/57" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/57" ); 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/57"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/57"
)
pet = res.json() Response
{
"id": 57,
"ownerUserId": 65,
"name": "Fanny",
"species": "dog",
"breedId": 28,
"gender": "female",
"birthDate": "2012-09-23",
"weightKg": 7.9,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-57/600/600",
"createdAt": "2025-05-25T00:36:32.348Z",
"updatedAt": "2025-12-06T11:31:07.623Z"
}