UnifyAPI
← Back to catalog

weatherapi.astronomy

mock data$0.001 / call

Astronomy Data

Get sunrise, sunset, moonrise, moonset times and moon phase for any location and date. Returns moon illumination percentage and phase name (WeatherAPI.com)

Weatherprovider: Weatherapi#weatherapi#weather

Input schema

qrequired

Location query — city name, coordinates, or zip code

string
date

Date for astronomy data (YYYY-MM-DD, default today)

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/weatherapi.astronomy \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"q":"<q>","date":"<date>"}'

Try it

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