0
Answered

Extract holiday layning from API

Rabbi Dan Moskovitz 4 years ago updated by Michael J. Radwin 4 years ago 1

Can you provide some direction on how to get layning values for Jewish holidays via the API


We've been using your Hebcal REST API to extract Torah information.


For example, here is the April REST call:

From the items array, we find each of the parashat objects (i.e. category = parashat). For example:

{
"title": "Parashat Shmini",
"hebrew": "פרשת שמיני",
"date": "2016-04-02",
"category": "parashat",
"leyning": {
"7": "Leviticus 11:33 - 11:47",
"2": "Leviticus 9:17 - 9:23",
"5": "Leviticus 10:16 - 10:20",
"3": "Leviticus 9:24 - 10:11",
"torah": "Leviticus 9:1 - 11:47",
"triennial": {
"4": "Leviticus 11:20 - 11:28",
"1": "Leviticus 11:1 - 11:8",
"6": "Leviticus 11:33 - 11:38",
"maftir": "Numbers 19:1 - 19:22 | Shabbat Parah",
"5": "Leviticus 11:29 - 11:32",
"3": "Leviticus 11:13 - 11:19",
"7": "Leviticus 11:39 - 11:47",
"2": "Leviticus 11:9 - 11:12"
},
"haftarah": "Ezekiel 36:16 - 36:38 | Shabbat Parah",
"1": "Leviticus 9:1 - 9:16",
"6": "Leviticus 11:1 - 11:32",
"4": "Leviticus 10:12 - 10:15",
"maftir": "Numbers 19:1 - 19:22 | Shabbat Parah"
}
}

From each parashat, we inspect the "leyning" to extract maftir, haftarah, the aliyah, and Torah portion (i.e. "title").

However, for Saturdays that are Jewish Holidays, the parashat object do not appear to be provided (ex. April 23, April 30).

Can you provide some direction on how to get these prayer values for Jewish holidays?

Answer

Answer
Answered

Our REST API doesn't yet expose holiday Torah readings. This is a missing feature


https://github.com/hebcal/dotcom/issues/16


In the interim, your best bet might to download CSV leyning spreadsheets that we post here, as they include the aliyah-by-aliyah breakdown:



Download them, load them into a database of your choice.

Answer
Answered

Our REST API doesn't yet expose holiday Torah readings. This is a missing feature


https://github.com/hebcal/dotcom/issues/16


In the interim, your best bet might to download CSV leyning spreadsheets that we post here, as they include the aliyah-by-aliyah breakdown:



Download them, load them into a database of your choice.