example-data.com

countries / #16

Italy

IT

Capital: Rome · Region: Europe

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/16"
)
countrie = res.json()
{
  "id": 16,
  "name": "Italy",
  "alpha2": "IT",
  "alpha3": "ITA",
  "numericCode": "380",
  "capital": "Rome",
  "region": "Europe",
  "subregion": "Southern Europe",
  "currencyCode": "EUR",
  "callingCode": "+39",
  "flagEmoji": "🇮🇹"
}
Draftbit