Jaqueline
- ownerUserId
-
Hilda Crooks @hilda_crooks61
- name
- Jaqueline
- species
- cat
- breedId
- Oriental Shorthair
- gender
- unknown
- birthDate
- —
- weightKg
- 5.4
- color
- White
- imageUrl
- https://picsum.photos/seed/pet-183/600/600
- createdAt
- updatedAt
Overview
pets / #183
Jaqueline
#183
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/183" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/183" ); 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/183"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/183"
)
pet = res.json() Response
{
"id": 183,
"ownerUserId": 187,
"name": "Jaqueline",
"species": "cat",
"breedId": 46,
"gender": "unknown",
"birthDate": null,
"weightKg": 5.4,
"color": "White",
"imageUrl": "https://picsum.photos/seed/pet-183/600/600",
"createdAt": "2022-05-04T13:34:04.771Z",
"updatedAt": "2022-06-16T17:39:15.027Z"
}