example-data.com

countries / #36

Singapore

SG

Capital: Singapore · Region: Asia

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/36"
)
countrie = res.json()
{
  "id": 36,
  "name": "Singapore",
  "alpha2": "SG",
  "alpha3": "SGP",
  "numericCode": "702",
  "capital": "Singapore",
  "region": "Asia",
  "subregion": "South-eastern Asia",
  "currencyCode": "SGD",
  "callingCode": "+65",
  "flagEmoji": "🇸🇬"
}
Draftbit