example-data.com

countries / #28

South Korea

KR

Capital: Seoul · Region: Asia

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/28"
)
countrie = res.json()
{
  "id": 28,
  "name": "South Korea",
  "alpha2": "KR",
  "alpha3": "KOR",
  "numericCode": "410",
  "capital": "Seoul",
  "region": "Asia",
  "subregion": "Eastern Asia",
  "currencyCode": "KRW",
  "callingCode": "+82",
  "flagEmoji": "🇰🇷"
}
Draftbit