Dev.to
6/16/2026

A Korean Saju (Four Pillars) API that gets the date math right
Short summary
Building a Saju (Korean Four Pillars of Destiny) API requires solving three hard problems: lunisolar calendar conversion with irregular leap months, 24 solar-term boundaries that shift yearly, and true solar-time adjustment for hour pillars. The author's live API (free tier: 100 calls/month) is fully validated against Korea's KASI reference dataset with zero failures across 47,455 test days, letting developers skip calendar math and focus on interpretation. Includes curl and JavaScript examples.
- •Korean Saju requires solving three hidden calendar complexities that trip up naive implementations: lunisolar conversion, solar-term boundaries, and true solar time.
- •The API is live at saju-api.pages.dev with a free tier (100 calls/month) and RapidAPI integration, validated against KASI reference data with zero errors across 47,455 days.
- •Ready to use in minutes with curl or JavaScript examples; includes Five Elements breakdown and compatibility scoring endpoints.
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



