0
Answered

Limits to data returned by start= and end= in zmanim api?

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

I'm using the https://www.hebcal.com/zmanim and playing with start= and end=. The following URL only returns data up to 10/16/2021 even though I've specified a full year.
https://www.hebcal.com/zmanim?cfg=json&geonameid=3448439&start=2021-09-01&end=2022-08-31

Is there a parameter I'm missing, or a limit on the API, or a difference between running it interactively in a browser versus through a script?

Thanks in advance!

- Leon

Answer

Answer
Answered

Hi, thanks for using Hebcal's Zmanim API!

To avoid excessive CPU usage and ensure quick response times, we limit the total range for Zmanim to be 45 days. If the "end" parameter is more than 45 days after the "start" parameter, is reset to 45 days.

The data I need from the zmanim api specifically is the times - sunrise and sunset, mostly.

Answer
Answered

Hi, thanks for using Hebcal's Zmanim API!

To avoid excessive CPU usage and ensure quick response times, we limit the total range for Zmanim to be 45 days. If the "end" parameter is more than 45 days after the "start" parameter, is reset to 45 days.