Rosalia
- ownerUserId
-
Lazaro Herzog @lazaro_herzog
- name
- Rosalia
- species
- cat
- breedId
- —
- gender
- female
- birthDate
- 2020-01-30
- weightKg
- 3.9
- color
- Tortoiseshell
- imageUrl
- https://picsum.photos/seed/pet-175/600/600
- createdAt
- updatedAt
Overview
pets / #175
Rosalia
#175
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/175" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/175" ); 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/175"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/175"
)
pet = res.json() Response
{
"id": 175,
"ownerUserId": 181,
"name": "Rosalia",
"species": "cat",
"breedId": null,
"gender": "female",
"birthDate": "2020-01-30",
"weightKg": 3.9,
"color": "Tortoiseshell",
"imageUrl": "https://picsum.photos/seed/pet-175/600/600",
"createdAt": "2020-10-05T21:40:21.179Z",
"updatedAt": "2026-03-31T14:51:55.232Z"
}