Dannie
- ownerUserId
-
Karlee Hudson-Turner @karlee.hudson-turner88
- name
- Dannie
- species
- other
- breedId
- —
- gender
- male
- birthDate
- 2014-04-27
- weightKg
- 3.53
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-27/600/600
- createdAt
- updatedAt
Overview
pets / #27
Dannie
#27
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/27" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/27" ); 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/27"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/27"
)
pet = res.json() Response
{
"id": 27,
"ownerUserId": 36,
"name": "Dannie",
"species": "other",
"breedId": null,
"gender": "male",
"birthDate": "2014-04-27",
"weightKg": 3.53,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-27/600/600",
"createdAt": "2020-06-10T09:56:35.059Z",
"updatedAt": "2026-02-03T07:16:14.367Z"
}