India
IN
Capital: New Delhi · Region: Asia
curl -sS \
"https://example-data.com/api/v1/countries/30" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/countries/30"
);
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/30"
);
const countrie = (await res.json()) as Countrie;import requests
res = requests.get(
"https://example-data.com/api/v1/countries/30"
)
countrie = res.json() {
"id": 30,
"name": "India",
"alpha2": "IN",
"alpha3": "IND",
"numericCode": "356",
"capital": "New Delhi",
"region": "Asia",
"subregion": "Southern Asia",
"currencyCode": "INR",
"callingCode": "+91",
"flagEmoji": "🇮🇳"
}