0
Fixed

REST API - Yom Kippur Bug?

Yitz Shaffer 2 years ago updated 2 years ago 2

The Yom Kippur data seems to formatted differently than other Yomim Tovim.

Instead of separate entries for "category: holiday" and "category: havdalah", it all show under the same key:

Image 184

Is this by design?

I'm using this URL to get the data:

http://www.hebcal.com/hebcal?v=1&cfg=json&c=on&maj=on&o=on&lg=h&s=on&geo=pos&i=off&latitude=33.87&longitude=-118.33

Answer

+1
Answer
Fixed

Hi, thanks for the bug report!

You are indeed correct, this is a bug caused by a recent change. We have identified the cause and have pushed out a fix.

http://www.hebcal.com/hebcal?v=1&cfg=json&c=on&maj=on&o=on&lg=h&s=on&geo=pos&i=off&latitude=33.87&longitude=-118.33&start=2022-10-04&end=2022-10-05

Here's the fixed output:

{
  "title": "Hebcal 33°52′N 118°19′W America/Los_Angeles October 2022",
  "date": "2022-10-03T21:57:00.127Z",
  "location": {
    "title": "33°52′N 118°19′W America/Los_Angeles",
    "city": "33°52′N 118°19′W America/Los_Angeles",
    "tzid": "America/Los_Angeles",
    "latitude": 33.87,
    "longitude": -118.33,
    "geo": "pos"
  },
  "range": {
    "start": "2022-10-04",
    "end": "2022-10-05"
  },
  "items": [
    {
      "title": "עֶרֶב יוֹם כִּפּוּר",
      "date": "2022-10-04",
      "hdate": "9 Tishrei 5783",
      "category": "holiday",
      "subcat": "major",
      "title_orig": "Erev Yom Kippur",
      "hebrew": "ערב יום כפור",
      "link": "https://hebcal.com/h/yom-kippur-2022?us=js&um=api",
      "memo": "Day of Atonement"
    },
    {
      "title": "הַדלָקָת נֵרוֹת: 6:15pm",
      "date": "2022-10-04T18:15:00-07:00",
      "category": "candles",
      "title_orig": "Candle lighting",
      "hebrew": "הדלקת נרות",
      "memo": "עֶרֶב יוֹם כִּפּוּר"
    },
    {
      "title": "יוֹם כִּפּוּר",
      "date": "2022-10-05",
      "hdate": "10 Tishrei 5783",
      "category": "holiday",
      "subcat": "major",
      "yomtov": true,
      "title_orig": "Yom Kippur",
      "hebrew": "יום כפור",
      "leyning": {
        "1": "Leviticus 16:1-16:6",
        "2": "Leviticus 16:7-16:11",
        "3": "Leviticus 16:12-16:17",
        "4": "Leviticus 16:18-16:24",
        "5": "Leviticus 16:25-16:30",
        "6": "Leviticus 16:31-16:34",
        "torah": "Leviticus 16:1-34; Numbers 29:7-11",
        "haftarah": "Isaiah 57:14-58:14",
        "maftir": "Numbers 29:7-29:11"
      },
      "link": "https://hebcal.com/h/yom-kippur-2022?us=js&um=api",
      "memo": "Day of Atonement"
    },
    {
      "title": "הַבדָלָה: 7:09pm",
      "date": "2022-10-05T19:09:00-07:00",
      "category": "havdalah",
      "title_orig": "Havdalah",
      "hebrew": "הבדלה",
      "memo": "יוֹם כִּפּוּר"
    }
  ]
}

+1
Answer
Fixed

Hi, thanks for the bug report!

You are indeed correct, this is a bug caused by a recent change. We have identified the cause and have pushed out a fix.

http://www.hebcal.com/hebcal?v=1&cfg=json&c=on&maj=on&o=on&lg=h&s=on&geo=pos&i=off&latitude=33.87&longitude=-118.33&start=2022-10-04&end=2022-10-05

Here's the fixed output:

{
  "title": "Hebcal 33°52′N 118°19′W America/Los_Angeles October 2022",
  "date": "2022-10-03T21:57:00.127Z",
  "location": {
    "title": "33°52′N 118°19′W America/Los_Angeles",
    "city": "33°52′N 118°19′W America/Los_Angeles",
    "tzid": "America/Los_Angeles",
    "latitude": 33.87,
    "longitude": -118.33,
    "geo": "pos"
  },
  "range": {
    "start": "2022-10-04",
    "end": "2022-10-05"
  },
  "items": [
    {
      "title": "עֶרֶב יוֹם כִּפּוּר",
      "date": "2022-10-04",
      "hdate": "9 Tishrei 5783",
      "category": "holiday",
      "subcat": "major",
      "title_orig": "Erev Yom Kippur",
      "hebrew": "ערב יום כפור",
      "link": "https://hebcal.com/h/yom-kippur-2022?us=js&um=api",
      "memo": "Day of Atonement"
    },
    {
      "title": "הַדלָקָת נֵרוֹת: 6:15pm",
      "date": "2022-10-04T18:15:00-07:00",
      "category": "candles",
      "title_orig": "Candle lighting",
      "hebrew": "הדלקת נרות",
      "memo": "עֶרֶב יוֹם כִּפּוּר"
    },
    {
      "title": "יוֹם כִּפּוּר",
      "date": "2022-10-05",
      "hdate": "10 Tishrei 5783",
      "category": "holiday",
      "subcat": "major",
      "yomtov": true,
      "title_orig": "Yom Kippur",
      "hebrew": "יום כפור",
      "leyning": {
        "1": "Leviticus 16:1-16:6",
        "2": "Leviticus 16:7-16:11",
        "3": "Leviticus 16:12-16:17",
        "4": "Leviticus 16:18-16:24",
        "5": "Leviticus 16:25-16:30",
        "6": "Leviticus 16:31-16:34",
        "torah": "Leviticus 16:1-34; Numbers 29:7-11",
        "haftarah": "Isaiah 57:14-58:14",
        "maftir": "Numbers 29:7-29:11"
      },
      "link": "https://hebcal.com/h/yom-kippur-2022?us=js&um=api",
      "memo": "Day of Atonement"
    },
    {
      "title": "הַבדָלָה: 7:09pm",
      "date": "2022-10-05T19:09:00-07:00",
      "category": "havdalah",
      "title_orig": "Havdalah",
      "hebrew": "הבדלה",
      "memo": "יוֹם כִּפּוּר"
    }
  ]
}