Orthodox Calendar

API

The api supports Cross-Origin Resource Sharing (CORS). Information for a day of the year can be fetched by including the jurisdiction and date in the url as follows:

/api/<jurisdiction>/<year>/<month>/<day>/
/api/<jurisdiction>/<year>/<month>/

For example:

/api/oca/2018/2/20/

Though the month view excludes the text of scriptures due to size and performance, you can fetch information for all of February using the following:

/api/oca/2018/2/

To get information for today, simply leave off the date as follows:

/api/oca/

Tentative support for ROCOR (and other jurisdictions that use the Julian calendar) is available as well. For example:

/api/rocor/2018/1/7/

React.js Example

You can view the code for this site and for the React.js application that provides the daily readings on this site in the orthocal-client Github repository.

HTML With jQuery Example

A very simple example of how to fetch and display this information using jQuery follows.

ES6 Example