Skip to content

printfn/lunar-phase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Lunar Phase JSON API

Endpoint

https://printfn.github.io/lunar-phase/api/lunar-phase-data/{year}/index.json

{year} can be any year between 1700 and 2082 (inclusive).

The response is in this format:

[
    { "Date": "1700-01-05T10:30:00Z", "Phase": 2 },
    { "Date": "1700-01-12T03:34:00Z", "Phase": 3 },
    // ...
]

All timestamps are in UTC.

Phases:

ID Name
0 New Moon
- Waxing Crescent
1 First Quarter
- Waxing Gibbeous
2 Full Moon
- Waning Gibbeous
3 Last Quarter
- Waning Crescent

Based on github.com/CraigChamberlain/moon-data