Moonrise Moonset API

GET

Know exact moonrise and moonset times for any coordinate.

Moonrise Moonset calculates exact moonrise and moonset times for any geographic coordinate. It outputs ISO 8601 timestamps for lunar rise and set events, with paid plans adding moon phase details and date selection.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/moonrisemoonset?lat=37.7749&lon=-122.4194
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "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
  }
}

About the Moonrise Moonset API

Moonrise Moonset works by analyzing the location provided and getting the moonrise and moonset times. It uses advanced algorithms to calculate the moonrise and moonset times based on the location and returns the moonrise and moonset times.

What people use it for

Sea Turtle Nesting Patrols
Conservation teams check local moonrise hours along beaches to deploy volunteer patrols during dark hours when sea turtles nest.
Milky Way Photo Shoots
Landscape photographers check moonset timestamps to schedule camera exposures when lunar glare will not wash out faint constellations.
Night Drone Flight Authorization
To assess ambient night visibility, drone operators look up moonrise timestamps before dispatching inspection flights across rural terrain.
Off-Grid Camp Setup
When scheduling backcountry trail segments, hiking apps display moonset hours to warn backpackers before natural light disappears completely.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Moonrise Moonset

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Moonrise Moonset API.

Read the docs →
Do I get the moon phase and custom dates on the Free plan?
No, moon phase details and custom date queries require a paid plan. The Free plan returns current moonrise and moonset timestamps for your coordinates, while paid plans unlock the phase parameter, specific calendar dates, and horizon indicators.
What would 10,000 moon time lookups a month cost me?
That volume works out to about $0.30 per 1,000 calls on the Starter plan. Each query takes 2 credits, so 10,000 lookups use 20,000 credits, which fits well inside the 200,000 credits included with Starter. The Free plan provides 100 calls per month.
What happens in polar regions where the moon never rises or sets?
The API flags these conditions directly instead of failing. On paid plans, the moonAlwaysUp and moonAlwaysDown fields indicate whether the moon stays continuously above or below the horizon at the specified coordinates.
Can I query moon times for any location globally?
Yes, you can supply any valid latitude and longitude coordinates across the globe. Moonrise Moonset calculates the corresponding rise and set times for those exact geographical points.
Can I display these moon times commercially inside my app?
Yes, commercial use is fully allowed on any paid plan. You can integrate and display the timestamps and phase values inside your own product, provided you do not resell or redistribute the raw API data.

Ready to build with Moonrise Moonset? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs