Valstis

Parametri

Query string parametrs Apraksts
lang ISO 3166-2 valodas kods. Nosaka valodu lokalizētajam valsts nosaukumam

XML paraugs

http://apis.lv/countries.xml?key=APIKEY&lang=lv
<?xml version="1.0" encoding="utf-8"?>
<xml>
  <item>
    <id>AD</id>
    <alpha3>AND</alpha3>
    <name>Andorra</name>
    <num>020</num>
    <localized_name>Andora</localized_name>
  </item>
  <item>
    <id>AE</id>
    <alpha3>ARE</alpha3>
    <name>United Arab Emirates</name>
    <num>784</num>
    <localized_name>Apvienotie Arābu Emirāti</localized_name>
  </item>
</xml>

JSON paraugs

http://apis.lv/countries.json?key=APIKEY&lang=lv
[
  {
    "id": "AD",
    "alpha3": "AND",
    "name": "Andorra",
    "num": "020",
    "localized_name": "Andora"
  },
  {
    "id": "AE",
    "alpha3": "ARE",
    "name": "United Arab Emirates",
    "num": "784",
    "localized_name": "Apvienotie Arābu Emirāti"
  }
]