example-data.com

countries / #19

Sweden

SE

Capital: Stockholm · Region: Europe

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/19"
)
countrie = res.json()
{
  "id": 19,
  "name": "Sweden",
  "alpha2": "SE",
  "alpha3": "SWE",
  "numericCode": "752",
  "capital": "Stockholm",
  "region": "Europe",
  "subregion": "Northern Europe",
  "currencyCode": "SEK",
  "callingCode": "+46",
  "flagEmoji": "🇸🇪"
}
Draftbit