Available endpoints:
/api/v1/current?city=CITY_NAME - Get current moon data using city name/api/v1/current?lat=LAT&lon=LON&tz=TIMEZONE - Get current moon data with precise coordinates/api/v1/next?city=CITY_NAME - Get next lunar events using city name/api/v1/next?lat=LAT&lon=LON&tz=TIMEZONE - Get next lunar events with precise coordinates/api/v1/distance?city=CITY_NAME - Get moon distance info using city name/api/v1/distance?lat=LAT&lon=LON&tz=TIMEZONE - Get moon distance with precise coordinates/api/v1/eclipses?city=CITY_NAME - Get upcoming lunar eclipses using city name/api/v1/eclipses?lat=LAT&lon=LON&tz=TIMEZONE - Get eclipses with precise coordinates/api/v1/sun?city=CITY_NAME - Get solar data using city name/api/v1/sun?lat=LAT&lon=LON&tz=TIMEZONE - Get solar data with precise coordinates/api/v1/rss?lat=LAT&lon=LON&tz=TIMEZONE - RSS feed of lunar eventsExamples:
Note: City names automatically detect timezone and handle daylight saving time.
All API responses are cached for 30 minutes to improve performance.