Vincenza
- ownerUserId
-
Hilda Crooks @hilda_crooks61
- name
- Vincenza
- species
- dog
- breedId
- Pug
- gender
- unknown
- birthDate
- —
- weightKg
- 66.9
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-182/600/600
- createdAt
- updatedAt
Overview
pets / #182
Vincenza
#182
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/182" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/182" ); 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/182"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/182"
)
pet = res.json() Response
{
"id": 182,
"ownerUserId": 187,
"name": "Vincenza",
"species": "dog",
"breedId": 23,
"gender": "unknown",
"birthDate": null,
"weightKg": 66.9,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-182/600/600",
"createdAt": "2013-11-14T01:08:34.405Z",
"updatedAt": "2013-12-13T12:31:01.908Z"
}