Skip to content

Moon

Provide moonrise time, moonset time, and moon phase data.

API

bash
curl "https://singer.caiyunhub.com/v3/astro/moon/?longitude=-74&latitude=40.7&lang=en&days=15&token={token}"

Query Parameters:

ParameterTypeOptionalDefault ValueDescription
longitudefloat0.0Longitude
latitudefloat0.0Latitude
langenumenLanguage parameter, see Multilingual Support for details
daysint3Number of days, support range [1, 15]

Response

json
{
  "moon": [
    {
      "date": "2024-04-09",
      "rise": "06:53",
      "set": "20:54",
      "phase": 5.7,
      "phase_name": "New Moon"
    },
    // ...
    {
      "date": "2024-04-23",
      "rise": "19:48",
      "set": "05:42",
      "phase": 170.78,
      "phase_name": "Full Moon"
    }
  ]
}
FieldTypeDescription
datestringDate
risestringRise time, - if not applicable
setstringSet time, - if not applicable
phasefloat
phase_nameenumName of the moon phase

Supported moon phase values in English environment:

EmojiPhase
🌑New Moon
🌒Waxing crescent
🌓First quarter
🌔Waxing gibbous
🌕Full Moon
🌖Waning gibbous
🌗Last quarter
🌘Waning crescent