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>1</day>
    <name>Solvita</name>
  </item>
  <item>
    <month>1</month>
    <day>1</day>
    <name>Laimnesis</name>
  </item>
</xml>

JSON paraugs

http://apis.lv/namedays.json?key=APIKEY
[
  {
    "month": 1,
    "day": 1,
    "name": "Solvita"
  },
  {
    "month": 1,
    "day": 1,
    "name": "Laimnesis"
  }
]

XML paraugs

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

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"
  }
]