Gustave
- ownerUserId
-
Gerda Streich @gerda_streich
- name
- Gustave
- species
- dog
- breedId
- —
- gender
- unknown
- birthDate
- 2025-12-09
- weightKg
- 10
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-114/600/600
- createdAt
- updatedAt
Overview
pets / #114
Gustave
#114
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/114" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/114" ); 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/114"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/114"
)
pet = res.json() Response
{
"id": 114,
"ownerUserId": 126,
"name": "Gustave",
"species": "dog",
"breedId": null,
"gender": "unknown",
"birthDate": "2025-12-09",
"weightKg": 10,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-114/600/600",
"createdAt": "2019-02-11T05:24:39.629Z",
"updatedAt": "2021-07-08T22:48:47.179Z"
}