Tarantula
other · Worldwide
pet-breeds / #80
other · Worldwide
Tarantula
other · Worldwide
curl -sS \
"https://example-data.com/api/v1/pet-breeds/80" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/80"
);
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/80"
);
const petBreed = (await res.json()) as PetBreed;import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/80"
)
pet_breed = res.json() {
"id": 80,
"name": "Tarantula",
"slug": "tarantula",
"species": "other",
"origin": "Worldwide",
"temperament": [
"Docile",
"Solitary",
"Slow"
],
"lifeExpectancyYears": 20,
"isHypoallergenic": false,
"createdAt": "2023-03-16T07:46:19.959Z"
}