Mark
- ownerUserId
-
Jolie Abernathy @jolie_abernathy33
- name
- Mark
- species
- cat
- breedId
- Turkish Angora
- gender
- unknown
- birthDate
- —
- weightKg
- 3.7
- color
- Calico
- imageUrl
- https://picsum.photos/seed/pet-44/600/600
- createdAt
- updatedAt
Overview
pets / #44
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/44" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/44" ); 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/44"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/44"
)
pet = res.json() Response
{
"id": 44,
"ownerUserId": 50,
"name": "Mark",
"species": "cat",
"breedId": 49,
"gender": "unknown",
"birthDate": null,
"weightKg": 3.7,
"color": "Calico",
"imageUrl": "https://picsum.photos/seed/pet-44/600/600",
"createdAt": "2018-05-05T16:23:28.259Z",
"updatedAt": "2023-07-21T10:08:00.490Z"
}