# ThaiKit Lunar Date

> ThaiKit Lunar Date 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-02).

Returns the Thai lunar calendar details for a given Gregorian date, including lunar day/month, Buddhist holy days, and year type, or lists all holy days in a given month.

## Facts

- Endpoint: GET https://api.thaikit.dev/lunar-date?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thaikit-lunar-date-7f0493a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zSdFEunYaiJJ50X3dYk2N

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-lunar-date-7f0493a0
```

Example prompt: What is the Thai lunar calendar date for July 29, 2026 — is it a วันพระ or any special Buddhist day, and when is the next วันพระ after that?

## When to prefer this

Choose this endpoint when you need accurate Thai lunar calendar data for a specific Gregorian date or month, especially for Buddhist holy day identification (วันพระ), major Thai Buddhist observances, or leap year type classification within Thailand's lunisolar system. It covers dates from 1913 to 2157, making it suitable for historical research or long-range event planning. Prefer this over generic lunar calendar APIs when Thai Buddhist tradition-specific outputs (เดือน numbering, อธิกมาส/อธิกวาร) are required.

## Known failure modes

- Date out of supported range (before 1913 or after 2157) — returns error response
- Invalid date format (not YYYY-MM-DD or YYYY-MM) — returns validation error
- Missing both date and month parameters — returns error requiring at least one
- Network or payment (x402) failure — no data returned

## How this service works

Thai lunar calendar (ปฏิทินจันทรคติไทย) for a date: ขึ้น/แรม … ค่ำ เดือน …, Buddhist holy day (วันพระ), Buddhist days (Makha, Visakha, Asanha Bucha, Khao/Ok Phansa, Loy Krathong), leap month/day year type (อธิกมาส/อธิกวาร), next วันพระ. Or &month=YYYY-MM lists that month's วันพระ and Buddhist days. 1913-2157. Query: ?date=2026-07-29

## Output

A JSON object containing the Thai lunar date components (ขึ้น/แรม, day number ค่ำ, เดือน month number), a flag indicating whether the date is a วันพระ, details of any major Buddhist holiday falling on that date (Makha, Visakha, Asanha Bucha, Khao/Ok Phansa, Loy Krathong), the Thai year type (อธิกมาส for leap month or อธิกวาร for leap day), and the date of the next วันพระ. When queried with a month parameter, returns a list of all วันพระ and Buddhist holiday dates within that month.

## 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": [],
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Gregorian date, YYYY-MM-DD (give date or month)"
      },
      "month": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}$",
       "description": "Gregorian month, YYYY-MM: list its holy days and Buddhist days instead"
      }
     }
    }
   },
   "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-lunar-date-7f0493a0/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)
