Oriental Shorthair
cat · United States
Overview
pet-breeds / #46
cat · United States
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pet-breeds/46" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pet-breeds/46" ); const petBreed = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/pet-breeds.d.ts https://example-data.com/types/pet-breeds.d.ts
import type { PetBreed } from "./types/pet-breeds";
const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/46"
);
const petBreed = (await res.json()) as PetBreed; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/46"
)
pet_breed = res.json() Response
{
"id": 46,
"name": "Oriental Shorthair",
"slug": "oriental-shorthair",
"species": "cat",
"origin": "United States",
"temperament": [
"Social",
"Curious",
"Vocal"
],
"lifeExpectancyYears": 14,
"isHypoallergenic": false,
"createdAt": "2024-05-31T01:26:52.054Z"
}