UnifyAPI
← Back to catalog

sunrisesunset.moon_phase

mock data$0.001 / call

SunriseSunset — Moon Phase & Lunar Times

Get moon phase, lunar illumination, and moonrise/moonset times for any location and date. Returns: moon phase name (New Moon, Waxing Crescent, First Quarter, Waxing Gibbous, Full Moon, Waning Gibbous, Last Quarter, Waning Crescent), phase value (0–1 cycle fraction), moon illumination percentage (0–100), moonrise time, moonset time, and flags for polar cases (moon_always_up / moon_always_down). No auth required; free commercial use. Source: SunriseSunset.io.

Geo & Mapsprovider: Sunrisesunset#sunrisesunset#geo

Input schema

latrequired

Latitude of the target location (-90 to 90). Positive = North, Negative = South.

number
lngrequired

Longitude of the target location (-180 to 180). Positive = East, Negative = West.

number
date

Date to query: "today", "tomorrow", or ISO date YYYY-MM-DD (e.g. 2026-01-15). Defaults to today.

string
timezone

IANA timezone name for output times (e.g. America/New_York, Europe/London, Asia/Tokyo). Auto-detected from lat/lng if omitted.

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/sunrisesunset.moon_phase \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"lat":0,"lng":0,"date":"<date>","timezone":"<timezone>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.