example-data.com

countries / #44

Nigeria

NG

Capital: Abuja · Region: Africa

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/44"
)
countrie = res.json()
{
  "id": 44,
  "name": "Nigeria",
  "alpha2": "NG",
  "alpha3": "NGA",
  "numericCode": "566",
  "capital": "Abuja",
  "region": "Africa",
  "subregion": "Western Africa",
  "currencyCode": "NGN",
  "callingCode": "+234",
  "flagEmoji": "🇳🇬"
}
Draftbit