https://github.com/printfn/lunar-phase
Lunar Phase JSON API
https://github.com/printfn/lunar-phase
api json lunar-phase
Last synced: 3 months ago
JSON representation
Lunar Phase JSON API
- Host: GitHub
- URL: https://github.com/printfn/lunar-phase
- Owner: printfn
- Created: 2022-03-11T10:06:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T20:05:22.000Z (7 months ago)
- Last Synced: 2025-01-18T07:12:56.469Z (5 months ago)
- Topics: api, json, lunar-phase
- Homepage: https://printfn.github.io/lunar-phase/api/lunar-phase-data/1700/index.json
- Size: 382 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```js
[
{ "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](https://github.com/CraigChamberlain/moon-data)