Latvijas datu avots
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). |
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>
http://apis.lv/namedays.json?key=APIKEY
[ { "month": 1, "day": 29, "name": "Bille" }, { "month": 3, "day": 25, "name": "Mare" } ]
http://apis.lv/namedays.xml?key=APIKEY&date=12-22
<?xml version="1.0" encoding="utf-8"?> <xml> <item>Saule</item> <item>Saulvedis</item> </xml>
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>
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" } ]
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>
http://apis.lv/namedays.json?key=APIKEY&name=Ruta&exact=1
[ { "id": 554, "month": 7, "day": 31, "name": "Ruta" } ]