example-data.com

countries / #23

Iceland

IS

Capital: Reykjavík · Region: Europe

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/23"
)
countrie = res.json()
{
  "id": 23,
  "name": "Iceland",
  "alpha2": "IS",
  "alpha3": "ISL",
  "numericCode": "352",
  "capital": "Reykjavík",
  "region": "Europe",
  "subregion": "Northern Europe",
  "currencyCode": "ISK",
  "callingCode": "+354",
  "flagEmoji": "🇮🇸"
}
Draftbit