The endpoints
| Endpoint | Request | Plan | What it gives you |
|---|---|---|---|
| Moon Phase and Void-of-Course | POST /v1/western/lunar-metrics | Hobby | Phase angle, phase name, illumination, void of course, Moon sign - from the ephemeris, at any moment |
| Panchang | POST /v1/panchang | Free | The tithi (Vedic lunar day) and its start and end times |
| Lunar Biorhythm | POST /v1/biorhythm/moon | Free | A phase from an average lunar month, with a short tone line |
From the ephemeris
The Moon at 00:00 UT on 5 December 2026:
POST /v1/western/lunar-metrics
{
"at": "2026-12-05T00:00:00Z"
}Recorded response (data; long lists cut):
{
"sun_longitude": 252.8479631918118,
"moon_longitude": 207.610173514307,
"phase_angle": 314.7622103224952,
"phase_fraction": 0.8743394731180423,
"phase_name": "waning_crescent",
"illumination": 0.14791697184599745,
"void_of_course": false,
"moon_sign": "Libra"
}phase_angle is the Moon's elongation from the Sun (314.8° here), which sets the phase name (waning_crescent) and the illumination (14.8%). at is any ISO 8601 instant and defaults to now - pass it, or the answer changes on every call.
Why the endpoints disagree
For the same day /v1/biorhythm/moon said 16.6% illuminated where the ephemeris said 14.8%. It is not computing the Moon's position: it counts days from a reference new moon using the average length of a lunar month, and it takes a date, not a moment. That is fine for a biorhythm-style tone line and wrong for anything that shows a percentage.
The panchang's tithi is a different measure again: the Moon's gain on the Sun in 12° steps, with the moment each tithi begins and ends. A Vedic calendar needs the tithi; a sky widget needs the phase.
The panchang for London on the same date:
POST /v1/panchang
{
"date": "2026-12-05",
"tz_offset_minutes": 0,
"lat": 51.5072,
"lng": -0.1276
}Recorded response (data; long lists cut):
{
"date": "2026-12-05",
"vara": {
"index": 6,
"name": "Shanivara",
"lord": "Saturn"
},
"tithi": {
"index": 27,
"name": "Dwadashi",
"paksha": "Krishna",
"start": "2026-12-04T18:15:14.000Z",
"end": "2026-12-05T19:22:29.000Z"
},
"nakshatra": {
"index": 15,
"name": "Swati"
},
"yoga": {
"index": 5,
"name": "Shobhana"
},
"karana": {
"index": 54,
"name": "Taitila"
},
"sunrise": "2026-12-05T07:49:05.000Z",
"sunset": "2026-12-05T15:52:49.000Z",
"moonrise": "2026-12-05T04:12:22.000Z",
"moonset": "2026-12-05T13:31:19.000Z",
"meta": {
"location": {
"lat": 51.5072,
"lng": -0.1276
},
"tz_offset_minutes": 0
}
}Questions
- Is there an API for the current moon phase?
- Yes.
POST /v1/western/lunar-metricsreturns the phase angle, phase name, illumination, void-of-course status and the Moon's sign for any moment, computed from the ephemeris. - What is the difference between moon phase and tithi?
- The phase describes how much of the Moon is lit. A tithi is the Vedic lunar day: each 12° the Moon gains on the Sun. There are 30 tithis in a lunar month; the panchang endpoint returns the current one with its start and end.
- Does the moon phase depend on location?
- No - the phase is the same everywhere at a given moment. What depends on location is the local date of that moment, and the times of moonrise and moonset, which the panchang returns.