Vārda dienas

Parametri

Query string parametrs Apraksts
date Datums formātā mm-dd. Atstāt tukšu, lai atgrieztu visas vārda dienas ar datumiem.
name Norādīt, lai meklētu pēc vārda.
exact Nosaka vai, norādot name parametru, tiek meklēts precīzi vai aptuveni (pēc noklusējuma – aptuveni).

XML paraugs

http://apis.lv/namedays.xml?key=APIKEY
<?xml version="1.0" encoding="utf-8"?>
<xml>
  <item>
    <month>1</month>
    <day>29</day>
    <name>Bille</name>
  </item>
  <item>
    <month>3</month>
    <day>25</day>
    <name>Mare</name>
  </item>
</xml>

JSON paraugs

http://apis.lv/namedays.json?key=APIKEY
[
  {
    "month": 1,
    "day": 29,
    "name": "Bille"
  },
  {
    "month": 3,
    "day": 25,
    "name": "Mare"
  }
]

XML paraugs

http://apis.lv/namedays.xml?key=APIKEY&date=07-16
<?xml version="1.0" encoding="utf-8"?>
<xml>
  <item>Liepa</item>
  <item>Hermīne</item>
  <item>Estere</item>
</xml>

JSON paraugs

http://apis.lv/namedays.json?key=APIKEY&date=07-16
[
  "Liepa",
  "Hermīne",
  "Estere"
]

XML paraugs

http://apis.lv/namedays.xml?key=APIKEY&name=Ruta&exact=0
<?xml version="1.0" encoding="utf-8"?>
<xml>
  <item>
    <id>554</id>
    <month>7</month>
    <day>31</day>
    <name>Ruta</name>
  </item>
  <item>
    <id>555</id>
    <month>7</month>
    <day>31</day>
    <name>Rūta</name>
  </item>
</xml>

JSON paraugs

http://apis.lv/namedays.json?key=APIKEY&name=Ruta&exact=0
[
  {
    "id": 554,
    "month": 7,
    "day": 31,
    "name": "Ruta"
  },
  {
    "id": 555,
    "month": 7,
    "day": 31,
    "name": "Rūta"
  }
]

XML paraugs

http://apis.lv/namedays.xml?key=APIKEY&name=Ruta&exact=1
<?xml version="1.0" encoding="utf-8"?>
<xml>
  <item>
    <id>554</id>
    <month>7</month>
    <day>31</day>
    <name>Ruta</name>
  </item>
</xml>

JSON paraugs

http://apis.lv/namedays.json?key=APIKEY&name=Ruta&exact=1
[
  {
    "id": 554,
    "month": 7,
    "day": 31,
    "name": "Ruta"
  }
]