# China Calendar API – Is Workday Check

> China Calendar API – Is Workday Check 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-30).

Returns whether a given date is a workday in China, accounting for official holidays and 调休 (compensatory workday) adjustments

## Facts

- Endpoint: GET https://cn-holiday-x402.linholiday.workers.dev/is-workday?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/china-calendar-api-is-workday-check-949035b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_czKxlYqnf36Q4oojJ1Ftz

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-is-workday-check-949035b7
```

Example prompt: Is February 14, 2026 actually a workday in China? I think it might be a 调休 makeup day — can you check the official Chinese government calendar?

## When to prefer this

Use this endpoint when you need authoritative, government-sourced Chinese workday determinations that correctly handle 调休 (compensatory makeup workdays) — scenarios where a Saturday becomes a workday and a weekday becomes a holiday. This is more reliable than generic calendar libraries, which often miss official Chinese State Council holiday schedule adjustments announced annually.

## Known failure modes

- Missing 'date' query parameter returns an error
- Malformed date format (not YYYY-MM-DD) returns a validation error
- Date outside supported calendar range may return no data or an error
- Payment failure via x402 protocol returns HTTP 402 before data is returned
- Network/Cloudflare Workers downtime returns HTTP 5xx

## 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

A JSON object with the queried date, a type field classifying it (e.g. 'adjusted_workday', 'holiday', or regular weekday), a boolean isWorkday field, the weekday name in Chinese, and a source object containing the official Chinese government document URL and document number (国办发明电 reference) supporting the classification.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-02-14",
  "type": "adjusted_workday",
  "source": {
   "url": "https://www.gov.cn/zhengce/zhengceku/202511/content_7047091.htm",
   "docNo": "国办发明电〔2025〕7号"
  },
  "weekday": "周六",
  "isWorkday": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/china-calendar-api-is-workday-check-949035b7/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)
