Korean Lunar Calendar API
by KunStudio · free to evaluate · no API key on origin

Korean Lunar Calendar API

Most teams reach for a per-language library (Python, Java, Go, Rust) to convert Korean lunar dates — which means a dependency in every service that needs it. This API does the same KASI-derived conversion over plain HTTP, so any stack can call it without installing anything.

Korea's traditional calendar is lunisolar: birthdays, 설날 (Lunar New Year), 추석 (Chuseok) and many family events are tracked on the lunar calendar. Converting between a solar (Gregorian) date and the Korean lunar date — correctly handling leap months (윤달) — is the building block for calendar, fortune (사주/saju) and reminder apps.

Solar and lunar date conversion schematic A solar (Gregorian) date converts to a Korean lunar date and the gapja (sexagenary) pillars, and back again. The leap-month (윤달) flag is carried in both directions so a round trip is lossless. SOLAR (Gregorian) 2026-02-17 an ordinary calendar date /v1/lunar/solar-to-lunar /v1/lunar/lunar-to-solar KOREAN LUNAR + 간지 lunar 2026 / 01 / 01 leap_month: false (윤달) 병오년 · 경인월 · 임술일 丙午年 · gapja pillars The leap-month (윤달) bit travels both ways, so a solar → lunar → solar round trip is lossless. Range 1391–2050.
Solar to lunar (and back). Each solar date maps to a Korean lunar date plus the gapja (간지) pillars; the leap-month (윤달) flag is preserved both ways, so a round trip is lossless.

Endpoints

GET /v1/lunar/solar-to-lunar?date=1991-05-15 Solar (Gregorian) date to Korean lunar date + gapja pillars.
GET /v1/lunar/lunar-to-solar?date=2026-01-01&leap=false Korean lunar date to solar date (leap=true for a leap month / 윤달).

Example request & response

curl "https://korea-calendar-api.kunstudio.workers.dev/v1/lunar/solar-to-lunar?date=1991-05-15"
{
  "solar": "1991-05-15",
  "lunar": { "year": 1991, "month": 4, "day": 2, "leap_month": false },
  "gapja": { "year": "신미년", "month": "계사월", "day": "을유일" }
}

No API key is needed on the origin to try this — it is rate-limited for fair evaluation. See the OpenAPI spec for the full schema.

Good to know

Related

Building a Korean fortune (사주/saju) app? Pair this with the KunStudio Saju API for a full four-pillars reading over REST.