Poland
PL
Capital: Warsaw · Region: Europe
curl -sS \
"https://example-data.com/api/v1/countries/24" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/countries/24"
);
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/24"
);
const countrie = (await res.json()) as Countrie;import requests
res = requests.get(
"https://example-data.com/api/v1/countries/24"
)
countrie = res.json() {
"id": 24,
"name": "Poland",
"alpha2": "PL",
"alpha3": "POL",
"numericCode": "616",
"capital": "Warsaw",
"region": "Europe",
"subregion": "Eastern Europe",
"currencyCode": "PLN",
"callingCode": "+48",
"flagEmoji": "🇵🇱"
}