Hertha
- ownerUserId
-
Gerald Lind @gerald_lind57
- name
- Hertha
- species
- rabbit
- breedId
- Flemish Giant
- gender
- unknown
- birthDate
- 2018-01-10
- weightKg
- 2.5
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-172/600/600
- createdAt
- updatedAt
Overview
pets / #172
Hertha
#172
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/172" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/172" ); 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/172"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/172"
)
pet = res.json() Response
{
"id": 172,
"ownerUserId": 179,
"name": "Hertha",
"species": "rabbit",
"breedId": 54,
"gender": "unknown",
"birthDate": "2018-01-10",
"weightKg": 2.5,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-172/600/600",
"createdAt": "2018-08-29T08:26:53.382Z",
"updatedAt": "2026-02-07T17:35:51.549Z"
}