example-data.com

countries / #48

New Zealand

NZ

Capital: Wellington · Region: Oceania

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/48"
)
countrie = res.json()
{
  "id": 48,
  "name": "New Zealand",
  "alpha2": "NZ",
  "alpha3": "NZL",
  "numericCode": "554",
  "capital": "Wellington",
  "region": "Oceania",
  "subregion": "Australia and New Zealand",
  "currencyCode": "NZD",
  "callingCode": "+64",
  "flagEmoji": "🇳🇿"
}
Draftbit