# Lunar-Solar Date Converter (Vietnamese/Chinese Calendar)

> Lunar-Solar Date Converter (Vietnamese/Chinese Calendar) is a paid API for AI agents from lunar-api-production-cba9.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Converts between Gregorian solar dates and Vietnamese/Chinese lunar calendar dates in both directions, with Can Chi and leap month support

## Facts

- Endpoint: GET https://lunar-api-production-cba9.up.railway.app/v1/lunar/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lunar-solar-date-converter-vietnamese-chinese-calendar-0f8c575d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JzLBA1xPodjVEHxQgNExW

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-solar-date-converter-vietnamese-chinese-calendar-0f8c575d
```

Example prompt: What is the Vietnamese lunar calendar date for March 15, 2025, including the Can Chi for that day? Convert solar to lunar.

## When to prefer this

Use this endpoint when you need precise bidirectional conversion between Gregorian and Vietnamese/Chinese lunar dates, especially when Can Chi (heavenly stems/earthly branches) is needed, when handling leap lunar months, or when computing traditional Vietnamese dates like ngay gio (death anniversaries) or birthdays in the lunar calendar.

## Known failure modes

- Date out of supported range (1900-2100) returns an error
- Missing required 'date' query parameter returns 400 bad request
- Invalid date format (not YYYY-MM-DD) returns parsing error
- Invalid direction enum value returns validation error
- Leap month flag provided for non-leap lunar month returns error or unexpected result

## How this service works

Convert between solar (Gregorian) and Vietnamese/Chinese lunar dates, both directions, 1900-2100, with leap month support. Returns Can Chi of the day. Essential for birthday lookup, ancestor worship dates (ngay gio) and traditional holidays.

## Output

Returns the corresponding lunar calendar date with month, day, year, Can Chi (heavenly stems and earthly branches), and leap month status for the given solar date — or the Gregorian equivalent for a given lunar 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": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "leap": {
       "type": "string",
       "description": "1 if lunar month is leap (lunar2solar only)"
      },
      "direction": {
       "enum": [
        "solar2lunar",
        "lunar2solar"
       ],
       "type": "string",
       "description": "default solar2lunar"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lunar-solar-date-converter-vietnamese-chinese-calendar-0f8c575d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lunar-api-production-cba9.up.railway.app](https://www.zero.xyz/host/lunar-api-production-cba9.up.railway.app/llms.txt)
