# Japan Public Holidays API

> Japan Public Holidays API is a paid API for AI agents from x402-ja-api.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the list of Japanese national public holidays for a given calendar year, sourced from the Cabinet Office of Japan.

## Facts

- Endpoint: GET https://x402-ja-api.onrender.com/v1/jp/holidays
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/japan-public-holidays-api-527e16c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rVJzrOf2dDtk39ermXP49

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 japan-public-holidays-api-527e16c5
```

Example prompt: What are all the official Japanese public holidays for 2026? I need the full list with dates and names.

## When to prefer this

Choose this endpoint when you need official, government-sourced Japanese public holiday data for a specific year, especially in contexts requiring accuracy for business scheduling, payroll, or compliance. It is the right choice for year-level holiday lookups covering the full official Japanese calendar. Prefer it over generic calendar APIs when you need Japanese-language holiday names and official government provenance.

## Known failure modes

- Year out of range (below 1955 or above 2100) returns a validation error
- Missing required 'year' query parameter returns an error
- Payment not provided or insufficient USDC balance returns HTTP 402
- Upstream Cabinet Office data unavailable causes server error
- Non-integer year value rejected by schema validation

## How this service works

Calendar and Japan data APIs for AI agents: worldwide holidays and business days (200+ countries), plus Japanese text-to-structure (address, name, bank, company normalization). Pay per call in USDC via x402, no API key.

## Output

A JSON object containing the requested year, total count of holidays, a source citation (Cabinet Office of Japan URL), and an array of holiday objects each with a date (YYYY-MM-DD) and Japanese name.

## 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": "integer",
       "maximum": 2100,
       "minimum": 1955,
       "description": "Western calendar year"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "count": 19,
  "source": "内閣府 https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html",
  "holidays": [
   {
    "date": "2026-01-01",
    "name": "元日"
   },
   {
    "date": "2026-01-12",
    "name": "成人の日"
   },
   {
    "date": "2026-09-22",
    "name": "休日"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/japan-public-holidays-api-527e16c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ja-api.onrender.com](https://www.zero.xyz/host/x402-ja-api.onrender.com/llms.txt)
