api
Country

Documentation

Endpoint: Country Information

  • URL: https://api.i-as.dev/api/country/{countryName}
  • Method: GET
  • Description: Retrieves detailed information about a country.
Response Example:
{
  "country": {
    "name": {
      "common": "Indonesia",
      "official": "Republic of Indonesia",
      "nativeName": {
        "ind": {
          "official": "Republik Indonesia",
          "common": "Indonesia"
        }
      }
    },
    "tld": [
      ".id"
    ],
    "cca2": "ID",
    "ccn3": "360",
    "cca3": "IDN",
    "cioc": "INA",
    // More data
  }
}
  • Fields:
    • name: Contains the country's name in multiple formats:
      • common: Common name of the country.
      • official: Official name of the country.
      • nativeName: Native name(s) of the country in different languages.
    • tld: List of top-level domain(s) for the country (e.g., .id for Indonesia).
    • cca2: 2-letter country code (ISO 3166-1 alpha-2).
    • ccn3: Numeric country code (ISO 3166-1 numeric).
    • cca3: 3-letter country code (ISO 3166-1 alpha-3).
    • cioc: Country code used by the International Olympic Committee (IOC).