example-data.com

countries / #45

Kenya

KE

Capital: Nairobi · Region: Africa

Component variants

curl -sS \
  "https://example-data.com/api/v1/countries/45" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/countries/45"
);
const countrie = await res.json();
import type { Countrie } from "https://example-data.com/types/countries.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/countries/45"
);
const countrie = (await res.json()) as Countrie;
import requests

res = requests.get(
    "https://example-data.com/api/v1/countries/45"
)
countrie = res.json()
{
  "id": 45,
  "name": "Kenya",
  "alpha2": "KE",
  "alpha3": "KEN",
  "numericCode": "404",
  "capital": "Nairobi",
  "region": "Africa",
  "subregion": "Eastern Africa",
  "currencyCode": "KES",
  "callingCode": "+254",
  "flagEmoji": "🇰🇪"
}
Draftbit