# China Calendar API – Solar Terms

> China Calendar API – Solar Terms is a paid API for AI agents from cn-holiday-x402.linholiday.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Returns all 24 Chinese solar terms (节气) with their exact dates and times for a given year

## Facts

- Endpoint: GET https://cn-holiday-x402.linholiday.workers.dev/solar-terms?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/china-calendar-api-solar-terms-545d6f8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jpsMsesSzXK2wLc2SUpxe

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 china-calendar-api-solar-terms-545d6f8b
```

Example prompt: Can you get me all the Chinese solar terms (节气) for 2026, including their exact dates and times in Shanghai timezone?

## When to prefer this

Use this endpoint when you need precise, programmatic access to all 24 Chinese solar terms (节气) for a specific Gregorian year, including exact timestamps in Asia/Shanghai timezone. Prefer it over general astronomy APIs when you specifically need Chinese traditional calendar solar terms with bilingual (English/Chinese) labels at low cost ($0.01/call via crypto micropayment).

## Known failure modes

- Missing 'year' query parameter returns a validation error
- Invalid year format (non-YYYY string) may return a 400 error
- Years far outside the supported historical/future range may return empty or error responses
- Payment not provided or rejected results in HTTP 402 with x402 payment details
- Network timeout on the Cloudflare Workers edge

## How this service works

Each paid call costs 0.01 USDC on eip155:8453 via x402 (exact scheme). Free: /health, /, /openapi.json, /llms.txt, /.well-known/x402.

## Output

Returns a JSON object containing the requested year, a list of all 24 solar terms each with English name, Chinese name (zh), date (YYYY-MM-DD), and exact ISO 8601 timestamp in Asia/Shanghai (UTC+8), plus a timezone label.

## 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": [
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "YYYY"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "terms": [
   {
    "en": "Minor Cold",
    "zh": "小寒",
    "date": "2026-01-05",
    "time": "2026-01-05T16:23:10+08:00"
   },
   {
    "en": "Major Cold",
    "zh": "大寒",
    "date": "2026-01-20",
    "time": "2026-01-20T09:44:56+08:00"
   }
  ],
  "timezone": "Asia/Shanghai (UTC+8)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/china-calendar-api-solar-terms-545d6f8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cn-holiday-x402.linholiday.workers.dev](https://www.zero.xyz/host/cn-holiday-x402.linholiday.workers.dev/llms.txt)
