Germany
DE
Capital: Berlin · Region: Europe
curl -sS \
"https://example-data.com/api/v1/countries/11" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/countries/11"
);
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/11"
);
const countrie = (await res.json()) as Countrie;import requests
res = requests.get(
"https://example-data.com/api/v1/countries/11"
)
countrie = res.json() {
"id": 11,
"name": "Germany",
"alpha2": "DE",
"alpha3": "DEU",
"numericCode": "276",
"capital": "Berlin",
"region": "Europe",
"subregion": "Western Europe",
"currencyCode": "EUR",
"callingCode": "+49",
"flagEmoji": "🇩🇪"
}