Gonzalo
- ownerUserId
-
Lew O'Kon @lew.okon75
- name
- Gonzalo
- species
- cat
- breedId
- Bengal
- gender
- unknown
- birthDate
- 2013-05-25
- weightKg
- 2.9
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-120/600/600
- createdAt
- updatedAt
Overview
pets / #120
Gonzalo
#120
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/120" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/120" ); 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/120"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/120"
)
pet = res.json() Response
{
"id": 120,
"ownerUserId": 131,
"name": "Gonzalo",
"species": "cat",
"breedId": 37,
"gender": "unknown",
"birthDate": "2013-05-25",
"weightKg": 2.9,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-120/600/600",
"createdAt": "2022-08-12T09:51:08.193Z",
"updatedAt": "2025-07-21T01:11:41.463Z"
}