0
Fixed

Havdalah time not returning in API call.

Karthik K 9 years ago updated by Michael J. Radwin 3 years ago 1

Sometimes the API is not returning all the values (shabbat times). For example click on the link provided below. It is not displaying the havdalah time.


Example API url:

http://www.hebcal.com/shabbat/?cfg=json&m=20&b=20&geonameid=6693679

API response:

stdClass Object

(
    [title] => Modiin, Central District, Israel
    [items] => Array
        (
            [0] => stdClass Object
                (
                    [category] => holiday
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [date] => 2015-12-07T16:55:00+02:00
                    [link] => http://www.hebcal.com/holidays/chanukah
                    [hebrew] => חנוכה: ב׳ נרות
                    [title] => Chanukah: 2 Candles: 4:55pm
                )

            [1] => stdClass Object
                (
                    [title] => Chanukah: 3 Candles: 4:55pm
                    [category] => holiday
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [date] => 2015-12-08T16:55:00+02:00
                    [hebrew] => חנוכה: ג׳ נרות
                    [link] => http://www.hebcal.com/holidays/chanukah
                )

            [2] => stdClass Object
                (
                    [title] => Chanukah: 4 Candles: 4:55pm
                    [category] => holiday
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [date] => 2015-12-09T16:55:00+02:00
                    [hebrew] => חנוכה: ד׳ נרות
                    [link] => http://www.hebcal.com/holidays/chanukah
                )

            [3] => stdClass Object
                (
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [category] => holiday
                    [date] => 2015-12-10T16:56:00+02:00
                    [hebrew] => חנוכה: ה׳ נרות
                    [link] => http://www.hebcal.com/holidays/chanukah
                    [title] => Chanukah: 5 Candles: 4:56pm
                )

            [4] => stdClass Object
                (
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [date] => 2015-12-11T16:16:00+02:00
                    [category] => holiday
                    [hebrew] => חנוכה: ו׳ נרות
                    [link] => http://www.hebcal.com/holidays/chanukah
                    [title] => Chanukah: 6 Candles: 4:16pm
                )

            [5] => stdClass Object
                (
                    [hebrew] => הדלקת נרות
                    [category] => candles
                    [date] => 2015-12-11T16:16:00+02:00
                    [title] => Candle lighting: 4:16pm
                )

            [6] => stdClass Object
                (
                    [title] => Parashat Miketz
                    [category] => parashat
                    [date] => 2015-12-12
                    [hebrew] => פרשת מקץ
                    [link] => http://www.hebcal.com/sedrot/miketz
                    [leyning] => stdClass Object
                        (
                            [8] => Numbers 28:9 - 28:15 | Shabbat Rosh Chodesh Chanukah
                            [3] => Genesis 41:39 - 41:52
                            [7] => Genesis 43:30 - 44:17
                            [maftir] => Numbers 7:42 - 7:47 | Shabbat Rosh Chodesh Chanukah
                            [6] => Genesis 43:16 - 43:29
                            [haftarah] => Zechariah 2:14-4:7 | Shabbat Rosh Chodesh Chanukah
                            [1] => Genesis 41:1 - 41:14
                            [torah] => Genesis 41:1 - 44:17
                            [4] => Genesis 41:53 - 42:18
                            [5] => Genesis 42:19 - 43:15
                            [2] => Genesis 41:15 - 41:38
                        )

                )

            [7] => stdClass Object
                (
                    [title] => Rosh Chodesh Tevet
                    [link] => http://www.hebcal.com/holidays/rosh-chodesh-tevet
                    [hebrew] => ראש חודש טבת
                    [category] => holiday
                    [memo] => Beginning of new Hebrew month of Tevet
                    [date] => 2015-12-12
                )

            [8] => stdClass Object
                (
                    [title] => Chanukah: 7 Candles: 4:56pm
                    [hebrew] => חנוכה: ז׳ נרות
                    [link] => http://www.hebcal.com/holidays/chanukah
                    [date] => 2015-12-12T16:56:00+02:00
                    [memo] => The Jewish festival of rededication, also known as the Festival of Lights
                    [category] => holiday
                )

        )

    [date] => 2015-12-07T09:11:07-00:00
    [link] => http://www.hebcal.com/shabbat/?m=20;b=20;geonameid=6693679;maj=on;min=on;mod=on;mf=on;ss=on;nx=on;c=on;i=on;geo=geoname
    [location] => stdClass Object
        (
            [latitude] => 31.89825
            [country] => Israel
            [geonameid] => 6693679
            [city] => Modiin
            [tzid] => Asia/Jerusalem
            [title] => Modiin, Central District, Israel
            [longitude] => 35.01051
            [admin1] => Central District
            [geo] => geoname
        )

)

Answer

Answer
Fixed

Hi, thanks for the feedback.

We've made changes to how our API works and Chanukah candle-lighting times will no longer suppress regular Shabbat/Havdalah times. Here's an example to illustrate how the API now behaves (with 2 events on Friday night and 2 events on Saturday night).

http://www.hebcal.com/shabbat/?cfg=json&m=20&b=20&geonameid=6693679&gy=2015&gm=12&gd=12

{

"title": "Chanukah: 7 Candles",

"date": "2015-12-12T16:56:00+02:00",

"category": "holiday",

"subcat": "major",

"hebrew": "חנוכה: ז׳ נרות",

"leyning": {

"7": "Numbers 28:9 - 28:15",

"haftarah": "Zechariah 2:14-4:7",

"maftir": "Numbers 7:42 - 7:47"

},

"link": "https://www.hebcal.com/holidays/chanukah-2015?i=on&utm_source=js&utm_medium=api",

"memo": "Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights"

},

{

"title": "Havdalah (20 min): 16:56",

"date": "2015-12-12T16:56:00+02:00",

"category": "havdalah",

"title_orig": "Havdalah",

"hebrew": "הבדלה (20 דקות)"

},


Answer
Fixed

Hi, thanks for the feedback.

We've made changes to how our API works and Chanukah candle-lighting times will no longer suppress regular Shabbat/Havdalah times. Here's an example to illustrate how the API now behaves (with 2 events on Friday night and 2 events on Saturday night).

http://www.hebcal.com/shabbat/?cfg=json&m=20&b=20&geonameid=6693679&gy=2015&gm=12&gd=12

{

"title": "Chanukah: 7 Candles",

"date": "2015-12-12T16:56:00+02:00",

"category": "holiday",

"subcat": "major",

"hebrew": "חנוכה: ז׳ נרות",

"leyning": {

"7": "Numbers 28:9 - 28:15",

"haftarah": "Zechariah 2:14-4:7",

"maftir": "Numbers 7:42 - 7:47"

},

"link": "https://www.hebcal.com/holidays/chanukah-2015?i=on&utm_source=js&utm_medium=api",

"memo": "Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights"

},

{

"title": "Havdalah (20 min): 16:56",

"date": "2015-12-12T16:56:00+02:00",

"category": "havdalah",

"title_orig": "Havdalah",

"hebrew": "הבדלה (20 דקות)"

},