0
Answered

Can you add Mevarchim/Molad info into the Shabbat API?

Leon Adato 3 years ago updated by Michael J. Radwin 3 years ago 2

Long time user, first time caller. 

Before I start, I want to thank you for all the hard work over the years to make this site and data better and better. It really has made a difference not only for me, but for helping me communicate the calendar, holidays, etc to my colleagues (and family, in some cases).

Shameless flattery out of the way, my question is whether you could, as the subject of this post implies, add the Molad information into the Shabbat API. I know I can loop through the full calendar output, but for my application (pulling the upcoming Shabbat information to auto-build my shul's email) it seems like it would be less overall churn it (the molad) was included in the Shabbat output.

Thank you again. 

Answer

Answer
Answered

Thanks for using Hebcal and thanks for the suggestion! We have added Shabbat Mevarchim to the Shabbat API 

https://www.hebcal.com/shabbat?cfg=json&zip=90035&gy=2021&gm=8&gd=5


You'll notice an item that looks like this:

{

"title": "Shabbat Mevarchim Chodesh Elul",

"date": "2021-08-07",

"category": "mevarchim",

"hebrew": "שבת מברכים חודש אלול",

"memo": "Molad Elul: Sun, 43 minutes and 10 chalakim after 10:00"

},

Answer
Answered

Thanks for using Hebcal and thanks for the suggestion! We have added Shabbat Mevarchim to the Shabbat API 

https://www.hebcal.com/shabbat?cfg=json&zip=90035&gy=2021&gm=8&gd=5


You'll notice an item that looks like this:

{

"title": "Shabbat Mevarchim Chodesh Elul",

"date": "2021-08-07",

"category": "mevarchim",

"hebrew": "שבת מברכים חודש אלול",

"memo": "Molad Elul: Sun, 43 minutes and 10 chalakim after 10:00"

},

Not an official Hebcal person, but I asked about this previously--see here: https://github.com/hebcal/hebcal/issues/207.  You get it if special shabbatot and rosh chodesh is turned on (major holidays also needs to be on).  You can turn everything else off to make it a fairly minimal output that doesn't require particularly extensive looping.

This link, for example, gives nothing besides candle lighting times, rosh chodesh dates, and major holiday info: 

https://www.hebcal.com/hebcal?v=1&cfg=json&maj=on&min=off&mod=off&ss=on&s=off&nx=on&mf=off&start=2021-03-20&end=2021-04-15&c=on&geo=city&city=GB-London&lg=sh&b=18


Which is more than just Shabbat times + molad, but not by a ton, and the other stuff is things you'd probably be putting in a shul email anyway (at least shul emails I've seen).