Precise Moonrise & Moonset Times for Any Location

Moonrise Moonset API.

Calculate precise moonrise and moonset times for any location and date. Get the current moon phase, visibility status, and know when the moon will be above the horizon. Essential for astrophotography, fishing activity planning, stargazing, and lunar observation applications.

Free tier, no card< 200ms responses99.9% uptime SLA
GET/v1/moonrisemoonsetlive
Response200 OK · sample
{
  "status": "ok",
  "error": null,
  "data": {
    "coordinates": {
      "latitude": 37.7749,
      "longitude": -122.4194
    },
    "phase": "Waning Crescent",
    "moonrise": "2025-12-16T12:24:41.532Z",
    "moonset": "2025-12-16T22:22:04.027Z",
    "moonAlwaysUp": false,
    "moonAlwaysDown": false
  }
}
Sample response · verify to run one live call, no signup
Integrates with your favorite tools
LangChainn8nZapierMakePipedreamPower AutomatePostman

Moonrise Moonset API

Calculate precise moonrise and moonset times for any location and date. Get the current moon phase, visibility status, and know when the moon will be above the horizon. Essential for astrophotography, fishing activity planning, stargazing, and lunar observation applications.

  • Precise moonrise and moonset times for any coordinates
  • Query any date - past, present, or future
  • Includes current moon phase with each response
  • Handles polar regions where moon may not rise/set
  1. 1

    Send one request

    A single authenticated GET with the location you care about — no SDK required.

    GET /v1/moonrisemoonset?query=
    x-api-key: your_key
  2. 2

    We do the aggregation

    Each request pulls from multiple upstream sources and computes the derived fields for you.

  3. 3

    Get clean JSON back

    One structured object, typically under 200 ms — ready to render.

    { coordinates, phase, moonrise, }

Everything in a single call.

/v1/moonrisemoonsetapplication/json
coordinateslatitude, longitude
phase"Waning Crescent"
moonrise"2025-12-16T12:24:41.532Z"
moonset"2025-12-16T22:22:04.027Z"
moonAlwaysUpfalse
moonAlwaysDownfalse

What developers build with it.

Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.

See every use case

Call it in your language.

Copy a working request, or install a typed SDK. Same endpoint, same key.

const res = await fetch("https://api.apiverve.com/v1/moonrisemoonset?lat=37.7749&lon=-122.4194&date=01-16-2026", {
  headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);

One subscription, the whole precise moonrise & moonset times for any location stack.

Every related API ships with your key — no separate plans, no extra keys, one bill.

See pricing
8APIs in this bundle
99.9%uptime SLA

Wire it into the tools you already run.

Ready-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.

Google Sheets
Log daily moonrise and moonset times
WhenScheduled daily
ThenFetch moonrise/moonset → append row
Slack
Post nightly moon report
WhenScheduled daily
ThenFetch moonrise/moonset → post message
Airtable
Enrich location records with moon data
WhenNew record created
ThenFetch moonrise/moonset → populate fields
Notion
Add moon data to daily entries
WhenNew database item created
ThenFetch moonrise/moonset → update properties
Salesforce
Add moon data to outdoor event records
WhenNew event created
ThenFetch moonrise/moonset → update custom fields
GitHub
Add moon data to astronomy project issues
WhenNew issue opened
ThenFetch moonrise/moonset → add comment
Browse all integrations

Questions about the API

How accurate are the moonrise and moonset times?
Our calculations are based on established astronomical algorithms and are accurate to within a few minutes. We account for atmospheric refraction and the moon's apparent size.
What time zone are the times returned in?
All times are returned in UTC (ISO 8601 format). Convert to local time using the timezone offset for your location, or use our World Time API to get the local timezone.
Can I get moonrise/moonset for a specific date?
Yes! Pass the optional date parameter in MM-DD-YYYY format to get times for any date. If not specified, we return today's times.
Why does moonrise time change so much day to day?
The moon rises about 50 minutes later each day on average because it orbits Earth in the same direction Earth rotates. Over a lunar month (~29.5 days), the moonrise time cycles through all 24 hours.
What happens when there is no moonrise or moonset?
On some days, the moon may not rise or not set at a given location. This is especially common near the poles or during certain moon phases. We return null for the missing event and include moonAlwaysUp or moonAlwaysDown flags to indicate continuous visibility.
Do you provide moon phase data?
Yes! Each response includes the current moon phase name (e.g., Waning Crescent, Full Moon). For detailed phase data like illumination percentage and lunar age, use our Moon Phases API.
Is this useful for fishing?
Absolutely. Many anglers use moonrise/moonset times combined with moon phase data to predict peak fish activity. The Solunar Theory suggests fish are most active during moonrise, moonset, and when the moon is overhead.
Can I use this for astrophotography?
Yes! Knowing moonrise/moonset times is essential for planning dark sky photography (when you want no moon) or moon photography (when you need the moon visible). Combine with moon phase data to plan for optimal conditions.

Start building with the Moonrise Moonset API. Free tier, no card required — your key is live in minutes.

Bonus: 300+ more APIs

The same key unlocks every other APIVerve endpoint — reach for them when you need them.

Browse the catalog