# ThaiKit Business-Day Calculator

> ThaiKit Business-Day Calculator is a paid API for AI agents from api.thaikit.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-03).

Calculates Thai business days using the Bank of Thailand holiday calendar: checks if a date is a business day, finds next/previous business days, adds/subtracts N business days, or counts business days between two dates.

## Facts

- Endpoint: GET https://api.thaikit.dev/business-days?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thaikit-business-day-calculator-eca02f26
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rvXw_NddY4JleTvpct2B8

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 thaikit-business-day-calculator-eca02f26
```

Example prompt: Is October 22, 2026 a Thai business day, and if not, what's the next working day? Also, what date is 5 business days after that, using the Bangkok region calendar?

## When to prefer this

Use this endpoint when you need Thai-specific business day calculations that respect the official Bank of Thailand holiday calendar, including regional Bangkok-only special days. Prefer this over generic date libraries that don't know Thai public holidays or over manual holiday lists that may be outdated.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a 400 error
- Date out of supported range returns an error
- Invalid region value (not 'nationwide' or 'bangkok') returns a validation error
- Missing required 'date' parameter returns a 400 error
- Network timeout or service unavailability returns a 5xx error

## How this service works

Thai business-day calculator on the Bank of Thailand holiday calendar: is a date a business day (or weekend/holiday), next and previous business day, add N business days (&add=5, negative allowed), or count business days between two dates inclusive (&to=2026-11-30). &region=bangkok counts Bangkok-only special days. Query: ?date=2026-10-22&add=1

## Output

Returns whether the queried date is a Thai business day, the next and previous business days, and optionally the date resulting from adding N business days or the count of business days between two dates. Results reflect the Bank of Thailand holiday calendar and optionally Bangkok-specific special days.

## 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": {
      "to": {
       "type": "string",
       "description": "Optional: end date YYYY-MM-DD; counts business days from date to to, both included"
      },
      "add": {
       "type": "string",
       "description": "Optional: business days to add, e.g. 5 or -3"
      },
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Date, YYYY-MM-DD"
      },
      "region": {
       "enum": [
        "nationwide",
        "bangkok"
       ],
       "type": "string",
       "description": "nationwide (default) or bangkok"
      }
     }
    }
   },
   "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/thaikit-business-day-calculator-eca02f26/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.thaikit.dev](https://www.zero.xyz/host/api.thaikit.dev/llms.txt)
