# Lunar Phase Calculator

> Lunar Phase Calculator is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Calculates approximate lunar phase, illumination percentage, and lunar age for a given date.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/moon-phase
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lunar-phase-calculator-e862a9dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rg3l0eXi0b9ZKN_Usz2pd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lunar-phase-calculator-e862a9dc
```

Example prompt: What's the moon phase on July 4th, 2025 — is it a full moon, and how illuminated is it?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC) programmatic lunar phase lookup for any date without setting up astronomical libraries. Ideal for agents needing moon phase data to enrich event planning, photography scheduling, or calendar features without requiring a full ephemeris API.

## Known failure modes

- Invalid or unparseable date format returns an error
- Missing date parameter defaults to current date or may return an error
- Dates far outside a supported range may produce inaccurate approximations
- Network or worker timeout results in a 5xx error

## How this service works

Calculate approximate lunar phase, illumination and lunar age for a date.

## Output

Returns the lunar phase name (e.g. waxing crescent, full moon), the illumination percentage of the moon's visible surface, and the lunar age in days for the requested date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "date": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lunar-phase-calculator-e862a9dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
