Standard Table
Top

Calendar API and Libraries

APIs/lookup table to convert different calendars. Data here is based on:

Calendar Conversion

Get the lookup table for the given year.

https://api.standardtable.com/lookup/calendar/<Source Calendar>/<Destination Calendar>/<year>.json

e.g. Convert a Gregorian date in 1965 to Chinese Date
https://api.standardtable.com/lookup/calendar/gregorian/chinese/1965.json

Calendar Localization

Get text/localization text for the IDs.

https://api.standardtable.com/lookup/calendar/<Calendar>/localization.json

e.g. Get chinese/english text of month and BaZi terms
https://api.standardtable.com/lookup/calendar/chinese/localization.json

Moon Phases

Get the list of moon phases for the given Gregorian year.

https://api.standardtable.com/lookup/calendar/gregorian/moonphase/<year>.json e.g. Get moon phases for 1965
https://api.standardtable.com/lookup/calendar/gregorian/moonphase/1965.json

Solar Term

Get the list of 24 Chinese Solar terms for the given Gregorian year.

https://api.standardtable.com/lookup/calendar/gregorian/solarterm/<year>.json e.g. Get 24 Solar Terms for 1965
https://api.standardtable.com/lookup/calendar/gregorian/moonphase/1965.json

Libraries

JS library for converting to and from Chinese Calendar Date. BaZi computations included.

https://api.standardtable.com/lib/calendar/chinese.js