The api supports Cross-Origin Resource Sharing (CORS). Information for any day of the year can be fetched by including the calendar ('gregorian' or 'julian') and date in the url as follows:
Though the month view excludes the text of scriptures and the lives of the saints due to size and performance, you can fetch information for all of February using the following:
To get information for today, simply leave off the date as follows:
Set the calendar to 'gregorian' for new calendar and to 'julian' for old calendar usage.
The rubrics are based on OCA rubrics. For example:
Legacy API Endpoints
The legacy endpoints (as follows below) using jurisdiction ('oca' or 'rocor') instead of calendar are still supported, but new development should take place using the names of the calendars instead of the jurisdictions.
Following are some simple examples of how to fetch the data from the api and incorporate it into a page.
HTML With jQuery Example
A very simple example of how to fetch and display fasting information using jQuery follows.
You can view the code for the previous version of this site that was built with React.js in the orthocal-client Github repository.