example-data.com

countries / #31

Pakistan

PK

Capital: Islamabad · Region: Asia

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/countries/31"
)
countrie = res.json()
{
  "id": 31,
  "name": "Pakistan",
  "alpha2": "PK",
  "alpha3": "PAK",
  "numericCode": "586",
  "capital": "Islamabad",
  "region": "Asia",
  "subregion": "Southern Asia",
  "currencyCode": "PKR",
  "callingCode": "+92",
  "flagEmoji": "🇵🇰"
}
Draftbit