# Chinese Lunar to Gregorian Calendar Converter

> Chinese Lunar to Gregorian Calendar Converter is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.016/call, status unknown (last checked 2026-09-15).

Converts a Chinese lunar calendar date (year, month, day) to the corresponding Gregorian (Western/solar) calendar date, including support for leap months.

## Facts

- Endpoint: GET https://api.cn402.com/solar
- Price: $0.016/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-2c5b8ecb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e9WjFygnaLSqceAQRIAzL

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 api-cn402-com-2c5b8ecb
```

Example prompt: What is the Gregorian calendar date for the 15th day of the 7th lunar month in lunar year 2024? It's not a leap month.

## When to prefer this

Use this endpoint when you need to convert a known Chinese lunar date (农历) back to its Gregorian equivalent — the reverse direction of solar-to-lunar. Ideal for scheduling traditional Chinese events, birthdays recorded in lunar calendar, or computing Gregorian dates for lunar anniversaries. Handles the complexity of Chinese leap months (闰月) automatically.

## Known failure modes

- Invalid lunar date provided (e.g. day 31 in a 29-day month) — returns error
- Leap month specified but no leap month exists for that lunar year/month — returns error
- Out-of-range year provided — returns error
- Missing required parameters — returns 400-style error

## How this service works

Chinese lunar to solar conversion, lunar to Gregorian, 农历转公历, Chinese lunar date to Western calendar, reverse lunar calendar lookup. Convert Chinese lunar date (year-month-day) back to Gregorian Western calendar date. Handles leap months in Chinese lunar calendar.

## Output

Returns the equivalent Gregorian (solar) calendar date corresponding to the provided Chinese lunar year, month, and day, correctly handling leap months in the Chinese lunisolar calendar system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "day": {
   "type": "string",
   "description": "Day (optional)"
  },
  "leap": {
   "type": "string",
   "description": "Leap (optional)"
  },
  "year": {
   "type": "string",
   "description": "Year (required)"
  },
  "month": {
   "type": "string",
   "description": "Month (optional)"
  }
 }
}
```

## More

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