{"uid":"cap_czKxlYqnf36Q4oojJ1Ftz","slug":"china-calendar-api-is-workday-check-949035b7","name":"China Calendar API – Is Workday Check","description":"Each paid call costs 0.01 USDC on eip155:8453 via x402 (exact scheme). Free: /health, /, /openapi.json, /llms.txt, /.well-known/x402.","url":"https://cn-holiday-x402.linholiday.workers.dev/is-workday?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8YYB5JK47jzLsH0exMn11","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns whether a given date is a workday in China, accounting for official holidays and 调休 (compensatory workday) adjustments","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Scheduling meetings around Chinese holidays","prompt":"I need to schedule a call with our team in Beijing on February 14, 2026 — can you check if that's actually a working day in China or if it's a holiday or makeup day?"},{"title":"Automating payroll for China office","prompt":"For our payroll system, can you check whether October 11, 2025 is an official workday in China, including any 调休 compensatory adjustments?"},{"title":"Validating delivery SLA during Golden Week","prompt":"We promised a 3-business-day delivery, and I want to confirm — is October 7, 2025 a real working day in China or part of Golden Week?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:31:12.204Z","isFirstParty":false,"canonicalSlug":"china-calendar-api-is-workday-check-949035b7"}