# Lilambd Koyomi Moon Phases API

> Lilambd Koyomi Moon Phases API is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-02).

Returns all moon phases (new moon, full moon, quarters) for a given year

## Facts

- Endpoint: GET https://api.lilambd.com/koyomi/moon-phases?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-koyomi-moon-phases-api-d9d2c59f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qNOOFYXpPslZMQq1eTg-i

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 lilambd-koyomi-moon-phases-api-d9d2c59f
```

Example prompt: Can you get me all the moon phases for 2025 — I want to know every new moon, full moon, and quarter moon date for the whole year?

## When to prefer this

Choose this endpoint when you need a full year's worth of lunar phase data in a single call, including new moons, full moons, and quarter moons. Useful for calendar generation, planning tools, astrological applications, or any use case requiring structured lunar event data by year. The x402 micropayment model makes it suitable for pay-per-query agent workflows.

## Known failure modes

- Missing required 'year' query parameter returns an error
- Invalid or non-integer year value may return an error or empty result
- Years far outside supported range may return empty data array
- Network or upstream data source unavailability causes request failure
- Payment failure (x402) prevents access to the endpoint

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

A JSON object containing an array of moon phase events for the requested year (data[]), a count of total events, and an attribution string crediting the data source. Each event in the array likely includes the phase name and its 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "year (integer)"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-koyomi-moon-phases-api-d9d2c59f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
