
using an API function for Jerusalem calendar and I give a bad answer
Hello
I need to get the current parahat name.I need both current parasha (for Israël and for Diaspora).
When I run :
https://www.hebcal.com/shabbat?cfg=json&tzid=Asia/Jerusalem
I get this :
{"title":"Hebcal New York City December 2024","date":"2024-12-17T15:50:38.350Z","version":"5.8.3-3.2.0","location":{"title":"New York City, New York, USA","city":"New York City","tzid":"America/New_York","latitude":40.71427,"longitude":-74.00597,"cc":"US","country":"United States","elevation":57,"admin1":"New York","asciiname":"New York City","geo":"geoname","geonameid":5128581},"range":{"start":"2024-12-20","end":"2024-12-21"},"items":[{"title":"Candle lighting: 4:13pm","date":"2024-12-20T16:13:00-05:00","category":"candles","title_orig":"Candle lighting","hebrew":"הדלקת נרות","memo":"Parashat Vayeshev"},{"title":"Parashat Vayeshev","date":"2024-12-21","hdate":"20 Kislev 5785","category":"parashat","hebrew":"פרשת וישב","leyning":{"1":"Genesis 37:1-37:11","2":"Genesis 37:12-37:22","3":"Genesis 37:23-37:36","4":"Genesis 38:1-38:30","5":"Genesis 39:1-39:6","6":"Genesis 39:7-39:23","7":"Genesis 40:1-40:23","torah":"Genesis 37:1-40:23","haftarah":"Amos 2:6-3:8","maftir":"Genesis 40:20-40:23","triennial":{"1":"Genesis 39:1-39:6","2":"Genesis 39:7-39:10","3":"Genesis 39:11-39:18","4":"Genesis 39:19-39:23","5":"Genesis 40:1-40:8","6":"Genesis 40:9-40:15","7":"Genesis 40:16-40:23","maftir":"Genesis 40:20-40:23"}},"link":"https://hebcal.com/s/5785/9?us=js&um=api"},{"title":"Havdalah: 5:18pm","date":"2024-12-21T17:18:00-05:00","category":"havdalah","title_orig":"Havdalah","hebrew":"הבדלה"}]}
Which is New York current Parasha.
I have also tried with the url :
https://www.hebcal.com/shabbat?cfg=json&tzid=Europe/Paris
I get this :
{"title":"Hebcal New York City December 2024","date":"2024-12-17T15:50:38.350Z","version":"5.8.3-3.2.0","location":{"title":"New York City, New York, USA","city":"New York City","tzid":"America/New_York","latitude":40.71427,"longitude":-74.00597,"cc":"US","country":"United States","elevation":57,"admin1":"New York","asciiname":"New York City","geo":"geoname","geonameid":5128581},"range":{"start":"2024-12-20","end":"2024-12-21"},"items":[{"title":"Candle lighting: 4:13pm","date":"2024-12-20T16:13:00-05:00","category":"candles","title_orig":"Candle lighting","hebrew":"הדלקת נרות","memo":"Parashat Vayeshev"},{"title":"Parashat Vayeshev","date":"2024-12-21","hdate":"20 Kislev 5785","category":"parashat","hebrew":"פרשת וישב","leyning":{"1":"Genesis 37:1-37:11","2":"Genesis 37:12-37:22","3":"Genesis 37:23-37:36","4":"Genesis 38:1-38:30","5":"Genesis 39:1-39:6","6":"Genesis 39:7-39:23","7":"Genesis 40:1-40:23","torah":"Genesis 37:1-40:23","haftarah":"Amos 2:6-3:8","maftir":"Genesis 40:20-40:23","triennial":{"1":"Genesis 39:1-39:6","2":"Genesis 39:7-39:10","3":"Genesis 39:11-39:18","4":"Genesis 39:19-39:23","5":"Genesis 40:1-40:8","6":"Genesis 40:9-40:15","7":"Genesis 40:16-40:23","maftir":"Genesis 40:20-40:23"}},"link":"https://hebcal.com/s/5785/9?us=js&um=api"},{"title":"Havdalah: 5:18pm","date":"2024-12-21T17:18:00-05:00","category":"havdalah","title_orig":"Havdalah","hebrew":"הבדלה"}]}
Which is also New York current Parasha
for Paris it's not a problem as New York and Paris have the same parachiot order. But in Israel, after Pessa'h or Souccoth, there may be a difference following the Hag is only one day ?
How can I get the true parasha for Israel ?
In advane thank you for your explanations
best regards
Michel Rottenberg

Hi, thanks for using the Hebcal APIs
The basic URL format is as follows:
https://www.hebcal.com/shabbat?cfg=json&geonameid=3448439&M=on
You must specify a location for candle-lighting times:
- geo=geoname – location specified by GeoNames.org numeric ID
- requires additional parameter geonameid=3448439
- Hebcal.com supports over 100,000 different GeoNames IDs. These are world cities with a population of 1,000 or more. See cities1000.zip from https://download.geonames.org/export
If you pick the correct geonameid for a city in our database, you don't need to specify the tzid.
You will find good documentation and examples at

Looks like ט׳ שבט תרצ״ג which is the 9th of Sh'vat, 5693
https://www.hebcal.com/converter?hd=9&hm=Shvat&hy=5693&h2g=1

Cannot find the app on watch app store
I got a new Apple Watch and iPhone and can’t find the app on either store.

thank you so much for your patience. The problem should be fixed now. You can find it by searching for Hebcal in the Apple App Store, or you can directly get it via this link.
https://apps.apple.com/us/app/hebcal-hebrew-calendar/id1582733315

source code credit
Hi,
I am building a Garmin hebrew calendar implementation. I will include the below credits for some of the code that helped me. Would you also want me to put the Monkey C code into your repository, or is the credit enough? I have no probelm sharing, but functionality is limited by watch capabilities right now.
This implementation is using code based on the HebCal (https://www.hebcal.com) APIs.
While I do not call their API directly, I have used their source code (https://hebcal.github.io/api/hdate/modules.html) to help build some of my functionality.
The use of such code is based on CC BY 4.0 International License, and does not imply endorsement from HebCal.

Hi, thanks for contacting Hebcal.
The @hebcal/hdate JavaScript source code that you are referencing is licensed under the GPL-2.0 license
https://github.com/hebcal/hdate-js?tab=GPL-2.0-1-ov-file#readme
If you are reusing source code to build your functionality, please be sure to note the The GNU General Public License 2.0 requirements.
The CC BY 4.0 license applies to content generated by web APIs, but not for source code reuse.

Adjustments before Hillel II, and before 7-900?
This is awesome! However, I was wondering: Does this calculator make adjustments for years before Hillel II when the calendar was different, and/or before the change in the years which used to track time since the Exodus rather than from Creation?

Thanks for using Hebcal. In short, no, you should not look to Hebcal to give precise calculations for dates before 1752 CE. Hebcal uses the proleptic Gregorian calendar and does not attempt to compensate for dates that differ prior to the Gregorian reformation.

CORS error on accessing www.hebcal.com/yahrzeit
I am trying to implement the returnd of info using Yahrzeti + Anniversary REST API. I am coding in Javascript in an HTML page so I have modified the code to use a FETCH in an aynchronous funciion with POST and other typical parameters. Howver I encounter an CORS error for cross platform issues. THe web page is embedded into a page available for inserted web pages on an application site so I have no control of the site or parts of the page outside the section I am adding. The chorme defugger lists the following when it tries to do the fetch .
A cross-origin resource sharing (CORS) request was blocked because of invalid or missing response headers of the request or the associated preflight request. To fix this issue, ensure the response to the CORS request and/or the associated preflight request are not missing headers and use valid header values. Note that if an opaque response is sufficient, the request's mode can be set to no-cors to fetch the resource with CORS disabled; that way CORS headers are not required but the response content is inaccessible (opaque).
1 request
Request Status Preflight Request (if problematic) Header Problem Invalid Value (if available)
yahrzeit blocked Access-Control-Allow-Origin Missing Header clude'
I am somewhat out of my league on this one. I have successfully loaded the HebCal Yz form that returns an observatin date from values entered on the form. Just dumped the code into a section of my blank HTML code section with the Hebcal HTML and it worked. But inserting equivalent JS to the CURL calls does not. Anyone who has implemented this type of API cal for JavaScxript on a web page please respond.

Thank you for using the Hebcal developer APIs. We apologize for the missing CORS header on our Yahrzeit + Anniversary web API. This was indeed a misconfiguration on our end.
This error is now fixed on our end. You should be able to access this API and your browser will receive the correct
Access-Control-Allow-Origin header.

Building a calendar for approx 30 individuals
We have a community minyan and want to build a database as described in the Header.
So I don't have to reinvent the wheel perhaps the methodology is available.
I want some sort of login protection and the capability for individuals to add and edit their dagtes

Hi, thanks for using Hebcal.
You are welcome to use the free Yahrzeit + Anniversary calendar located at https://www.hebcal.com/yahrzeit
This webiste was designed for individuals, not minyanim, so it's quite limited in its features and offers only a few options for customization. We definitely don't have all of the the features you described. For example, there is no login protection - only an "unlisted link" mechanism that permits anyone who has the link to edit the page. At this time, we don't have plans to add additional features like logins, nor do we have any capability to offer any further customization of the current product.
Feel free to use our existing tool as it is, or consider a commercial solution like ShulCloud for your minyan.
Shana Tova and G'mar Chatima Tova!
Customer support service by UserEcho