+1
Answered

Yahrzeit dates from Jewish calendar REST API

tZkSs 3 years ago updated by Michael J. Radwin 3 years ago 2

Is there a way to get Yahrzeit dates from Jewish calendar REST API

I need to get next anniversary dates by looking at date of death a person. 

I tried to find the solution on Hebcal site, they are provided a REST API for calendar, and UI to calculate that dates also, but I could not to find REST api method for it

this is the UI,https://www.hebcal.com/yahrzeit

I need that data as JSON from REST API.


If anyone have experience on that please let know me


Thanks 

Answer

Answer
Answered

We've released some experimental support for an API here.

Documentation is forthcoming, but the basic idea is that you'll need to POST x-www-form-urlencoded data to https://www.hebcal.com/yahrzeit with the special parameter cfg=json

For example:

curl 'https://www.hebcal.com/yahrzeit' \
-H 'content-type: application/x-www-form-urlencoded' \
--data-raw 'cfg=json&n1=Example1&t1=Birthday&d1=15&m1=4&y1=1983&s1=on&n2=Example2&t2=Yahrzeit&d2=13&m2=11&y2=2008&s2=off&hebdate=on&years=20&v=yahrzeit' \
--compressed

Answer
Answered

We've released some experimental support for an API here.

Documentation is forthcoming, but the basic idea is that you'll need to POST x-www-form-urlencoded data to https://www.hebcal.com/yahrzeit with the special parameter cfg=json

For example:

curl 'https://www.hebcal.com/yahrzeit' \
-H 'content-type: application/x-www-form-urlencoded' \
--data-raw 'cfg=json&n1=Example1&t1=Birthday&d1=15&m1=4&y1=1983&s1=on&n2=Example2&t2=Yahrzeit&d2=13&m2=11&y2=2008&s2=off&hebdate=on&years=20&v=yahrzeit' \
--compressed

+1
Under review

Hi, thanks for the suggestion!

We don't yet offer a REST API for this, but this is a very good idea. We'd like to implement this feature but it will take some time to do so.

In the meantime, if your system is built in JavaScript, you can use the @hebcal/core NPM package to do the Yahrzeit conversions

https://www.npmjs.com/package/@hebcal/core