# Moon Phases API

> Moon Phases calculates the current lunar phase, illumination percentage, and lunar age for today. It reports waxing or waning status, Earth-moon distance in Earth radii and kilometers, the next principal phase and emoji representations, while paid plans add custom date queries and the dates of the next new moon, first quarter, full moon and last quarter.

**Endpoint:** `GET https://api.apiverve.com/v1/moonphases`  
**Category:** Astrology  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/moonphases

## Overview

A moon phase and lunar phase API that returns the phases of the moon as JSON, with an emoji icon for each phase you can drop straight into a weather or calendar UI. Moon Phases works by calculating the moon phase based on the date provided. Every response names the next principal phase, and paid plans add when it arrives plus the next and last new moon, the next first and last quarters, and the next and last full moon, all from the mean lunar month, so they are approximate to within about a day.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/moonphases?today=true&phases=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `today` | boolean | No | Get the moon phase for today. default true |
| `phases` | boolean | No | Include the dates of the next new moon, first quarter and last quarter and the days to each. default false. Premium field |

## Response fields

- `date` — string · The date the phase was calculated for (YYYY-MM-DD, UTC)
- `phase` — string · Current moon phase name
- `phaseEmoji` — string · Emoji showing the current phase
- `illumination` — number · Approximate illumination percentage (0-100)
- `waxing` — boolean · Whether the illuminated fraction is growing
- `waning` — boolean · Whether the illuminated fraction is shrinking
- `lunarAge` — number · Days since the last new moon
- `lunarAgePercent` — number · How far through the lunar cycle the moon is, from 0 to 1
- `lunationNumber` — number · Which lunar cycle this is, counting from the new moon of January 1923
- `lunarDistance` — number · Distance to the moon in Earth radii
- `nextFullMoon` — string · Date of next full moon · (premium)
- `lastFullMoon` — string · Date of last full moon · (premium)
- `daysToFullMoon` — number · Days until next full moon · (premium)
- `daysSinceFullMoon` — number · Days since last full moon · (premium)
- `lunarDistanceKm` — number · Approximate Earth-moon distance in kilometers
- `nextPhase` — string · The next principal phase: New Moon, First Quarter, Full Moon or Last Quarter
- `nextPhaseDate` — string · Approximate date and time of the next principal phase (ISO 8601) (with phases=true) · (premium)
- `daysToNextPhase` — number · Days until the next principal phase (with phases=true) · (premium)
- `nextNewMoon` — string · Approximate date and time of the next new moon (ISO 8601) (with phases=true) · (premium)
- `lastNewMoon` — string · Approximate date and time of the most recent new moon (ISO 8601) (with phases=true) · (premium)
- `daysToNewMoon` — number · Days until the next new moon (with phases=true) · (premium)
- `daysSinceNewMoon` — number · Days since the most recent new moon (with phases=true) · (premium)
- `nextFirstQuarter` — string · Approximate date and time of the next first quarter (ISO 8601) (with phases=true) · (premium)
- `nextLastQuarter` — string · Approximate date and time of the next last quarter (ISO 8601) (with phases=true) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "date": "2026-10-27",
    "phase": "Full",
    "phaseEmoji": "🌕",
    "illumination": 98.8,
    "waxing": false,
    "waning": true,
    "lunarAge": 15.775469393347242,
    "lunarAgePercent": 0.534207769602574,
    "lunationNumber": 1285,
    "lunarDistance": 57.48396905317442,
    "nextFullMoon": "2026-11-24T17:29:23.611Z",
    "lastFullMoon": "2026-10-26T04:45:20.833Z",
    "daysToFullMoon": 29,
    "daysSinceFullMoon": 1,
    "lunarDistanceKm": 366230,
    "nextPhase": "Last Quarter",
    "nextPhaseDate": "2026-11-02T13:56:21.527Z",
    "daysToNextPhase": 6,
    "nextNewMoon": "2026-11-09T23:07:22.222Z",
    "lastNewMoon": "2026-10-11T10:23:19.444Z",
    "daysToNewMoon": 14,
    "daysSinceNewMoon": 16,
    "nextFirstQuarter": "2026-11-17T08:18:22.916Z",
    "nextLastQuarter": "2026-11-02T13:56:21.527Z"
  }
}
```

## Use cases

- **Night Sky Photography** — Astrophotographers check lunar illumination and waxing status to schedule dark-sky Milky Way shoots around the new moon.
- **Biodynamic Planting Calendars** — Gardening software aligns root and above-ground crop sowing schedules using lunar cycle progression and current lunar age.
- **Stargazing Event Planning** — When planning evening telescope sessions, observatory guides inspect illumination percentages to schedule viewing nights under pitch-black skies.
- **Fishing Forecast Dashboards** — Forecast peak feeding activity by pairing lunation numbers and waxing indicators with local marine tables in fishing apps.

## SDKs

- **npm** — `npm install @apiverve/moonphases` (https://www.npmjs.com/package/@apiverve/moonphases)
- **PyPI** — `pip install apiverve-moonphases` (https://pypi.org/project/apiverve-moonphases/)
- **NuGet** — `dotnet add package APIVerve.API.MoonPhases` (https://www.nuget.org/packages/APIVerve.API.MoonPhases)
- **Source** — https://github.com/apiverve/moonphases-api

## More

- Full reference: https://docs.apiverve.com/ref/moonphases
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
