example-data.com

pet-breeds / #70

Corn Snake

reptile · North America

Component variants

curl -sS \
  "https://example-data.com/api/v1/pet-breeds/70" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/pet-breeds/70"
);
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/70"
);
const petBreed = (await res.json()) as PetBreed;
import requests

res = requests.get(
    "https://example-data.com/api/v1/pet-breeds/70"
)
pet_breed = res.json()
{
  "id": 70,
  "name": "Corn Snake",
  "slug": "corn-snake",
  "species": "reptile",
  "origin": "North America",
  "temperament": [
    "Docile",
    "Curious",
    "Easygoing"
  ],
  "lifeExpectancyYears": 20,
  "isHypoallergenic": false,
  "createdAt": "2021-12-10T23:28:52.002Z"
}
Draftbit