Liturgical Bible Readings

To get today’s Syro Malabar Liturgical Bible Readings for the Day, just call the URL with just one parameter – Date (added to the end of the URL). Please note – certain days may have multiple bible readings for each celebratory event. This API would provide all those reading details. Make sure you implement a method which handles multiple readings for a single day. (Eg: Click on the example URL for multiple readings for the day)

https://syrocalendar.tk/SyroMalabarCalendar/?Mode=JSON&Type=DailyReadings&Date=

where you have to provide the Date in dd-mm-yyyy format.


Example URL Call

https://syrocalendar.tk/SyroMalabarCalendar/?Mode=JSON&Type=DailyReadings&Date=25-01-2021



Result

You will receive a JSON array that contains the following info for each day:

FieldDetail
SeasonIDThe ID of the Liturgical Season (1-11)
SearchDateDate you entered
ReadingTypeType of Reading : Normal Day / Special Day
DayTypeWhether the Day is a Kadamulla Day (0/1)
Reading1_MalReading 1 Chapter in Malayalam
Reading1_Title_MalReading 1 Chapter Title in Malayalam
Reading2_MalReading 2 Chapter in Malayalam
Reading2_Title_MalReading 2 Chapter Title in Malayalam
Reading3_MalReading 3 Chapter in Malayalam
Reading3_Title_MalReading 3 Chapter Title in Malayalam
ReadingGospal_MalGospal Reading Chapter in Malayalam
ReadingGospal_Title_MalGospal Reading Chapter Title in Malayalam
Reading1_EngReading 1 Chapter in English
Reading1_Title_EngReading 1 Chapter Title in English
Reading2_EngReading 2 Chapter in English
Reading2_Title_EngReading 2 Chapter Title in English
Reading3_EngReading 3 Chapter in English
Reading3_Title_EngReading 3 Chapter Title in English
ReadingGospal_EngGospal Reading Chapter in English
ReadingGospal_Title_EngGospal Reading Chapter Title in English
DayDescription_MalLiturgical Day Description in Malayalam
DayDescription_EngLiturgical Day Description in English
SeasonName_Eng_FullLiturgical Season Name in English
SeasonName_Mal_FullLiturgical Season Name in Malayalam

Example Code with Javascript


<div class="parent-container" style="">
  <ul id="MalayalamReadings"></ul>
</div>

<div class="parent-container" style="">
  <ul id="EnglishReadings"></ul>
</div>


<!-- Syro Malabar Liturgical Bible Readings -->
<script>
var getJSON = function(url, callback) {
    var xhr = new XMLHttpRequest();
    xhr.open('GET', url, true);
    xhr.responseType = 'json';    
    xhr.onload = function() {    
        var status = xhr.status;        
        if (status == 200) {
            callback(null, xhr.response);
        } else {
            callback(status);
        }
    };    
    xhr.send();
};
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();
today = dd + '-' + mm + '-' + yyyy;

getJSON('https://syrocalendar.tk/SyroMalabarCalendar/?Mode=JSON&Type=DailyReadings&Date=' + today,  function(err, tmtm) {    
    if (err != null) {
        console.error(err);
    } else {
	// **Syro Malabar Calendar API. For more info, visit https://SyroCalendar.tk **
	
	var ContentMalayalamReading = "";
	var ContentEnglishReading = "";
	var ReadingFlag = 0;

	tmtm.forEach((item) => {
			if(ReadingFlag == 0){
				ContentMalayalamReading = ContentMalayalamReading + "<li><h3><span>" + item.DayDescription_Mal + "</span></h3><div>";
			}
			else {
				ContentMalayalamReading = ContentMalayalamReading + "<li><h3><span>" + item.DayDescription_Mal + "</span></h3><div>";
			}

			if(item.Reading1_Mal != null)
				ContentMalayalamReading = ContentMalayalamReading + "<b" + " 1) " + item.Reading1_Mal + "</b>" + "<br>" + item.Reading1_Title_Mal ;
			if(item.Reading2_Mal != null)
				ContentMalayalamReading = ContentMalayalamReading + "<br><b>" + " 2) " + item.Reading2_Mal + "</b>" + "<br>" + item.Reading2_Title_Mal ;
			if(item.Reading3_Mal != null)
				ContentMalayalamReading = ContentMalayalamReading + "<br><b">" + " 3) " + item.Reading3_Mal + "</b>" + "<br>" + item.Reading3_Title_Mal ;
			if(item.ReadingGospal_Mal != null)
				ContentMalayalamReading = ContentMalayalamReading + "<br><b>" + " G) " + item.ReadingGospal_Mal + "</b>" + "<br>" + item.ReadingGospal_Title_Mal;		
			
			ContentMalayalamReading = ContentMalayalamReading + "</div></li>";
			
			if(ReadingFlag == 0){
				ContentEnglishReading = ContentEnglishReading + "<li><h3><span>" + item.DayDescription_Eng + "</span></h3><div>";
			}
			else {
				ContentEnglishReading = ContentEnglishReading + "<li><h3><span>" + item.DayDescription_Eng + "</span></h3><div>";
			}
			
			if(item.Reading1_Eng != null)
				ContentEnglishReading = ContentEnglishReading + "<b>" + " 1) " + item.Reading1_Eng + "</b>" + "<br>" + item.Reading1_Title_Eng;
			if(item.Reading2_Eng != null)
				ContentEnglishReading = ContentEnglishReading + "<br><b>" + " 2) " + item.Reading2_Eng + "</b>" + "<br>" + item.Reading2_Title_Eng ;
			if(item.Reading3_Eng != null)
				ContentEnglishReading = ContentEnglishReading + "<br><b>" + " 3) " + item.Reading3_Eng + "</b>" + "<br>" + item.Reading3_Title_Eng ;
			if(item.ReadingGospal_Eng != null)
				ContentEnglishReading = ContentEnglishReading + "<br><b>" + " G) " + item.ReadingGospal_Eng + "</b>" + "<br>" + item.ReadingGospal_Title_Eng;		
			
			ContentEnglishReading = ContentEnglishReading + "</div></li>";	
			ReadingFlag++;
		});
	}
	document.getElementById("MalayalamReadings").innerHTML = ContentMalayalamReading;
	document.getElementById("EnglishReadings").innerHTML = ContentEnglishReading; 	
});
</script>
<br/>
<a href="https://syrocalendar.tk/daily-readings/" target="_blank" style="font-style: italic;">View readings for another date &gt;&gt;</a>

Please don’t forget to provide a link to SyroCalendar.tk below the Widget you implemented. It could be as simple as
Powered by SyroCalendar