Juston
- ownerUserId
-
Cassidy Christiansen @cassidy_christiansen38
- name
- Juston
- species
- bird
- breedId
- —
- gender
- unknown
- birthDate
- 2017-08-19
- weightKg
- 0.57
- color
- Multi-color
- imageUrl
- https://picsum.photos/seed/pet-25/600/600
- createdAt
- updatedAt
Overview
pets / #25
Juston
#25
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/25" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/25" ); 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/25"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/25"
)
pet = res.json() Response
{
"id": 25,
"ownerUserId": 33,
"name": "Juston",
"species": "bird",
"breedId": null,
"gender": "unknown",
"birthDate": "2017-08-19",
"weightKg": 0.57,
"color": "Multi-color",
"imageUrl": "https://picsum.photos/seed/pet-25/600/600",
"createdAt": "2011-08-07T23:19:58.889Z",
"updatedAt": "2024-04-11T23:52:58.974Z"
}