Canary
bird · Canary Islands
pet-breeds / #60
bird · Canary Islands
Canary
bird · Canary Islands
curl -sS \
"https://example-data.com/api/v1/pet-breeds/60" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/60"
);
const petBreed = await res.json();import type { PetBreed } from "https://example-data.com/types/pet-breeds.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/60"
);
const petBreed = (await res.json()) as PetBreed;import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/60"
)
pet_breed = res.json() {
"id": 60,
"name": "Canary",
"slug": "canary",
"species": "bird",
"origin": "Canary Islands",
"temperament": [
"Quiet",
"Cheerful",
"Independent"
],
"lifeExpectancyYears": 10,
"isHypoallergenic": false,
"createdAt": "2023-03-15T15:29:53.545Z"
}