# Japanese Business Day Calculator

> Japanese Business Day Calculator 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).

Calculates Japanese business days by checking if a date is a business day and optionally adding/subtracting business days, supporting both standard and bank holiday calendars.

## Facts

- Endpoint: GET https://x402-ja-api.onrender.com/v1/jp/business-day
- 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/japanese-business-day-calculator-b53e7af7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__4UqGNvKdOjU7V9ntD4E6

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 japanese-business-day-calculator-b53e7af7
```

Example prompt: Is September 18, 2026 a business day in Japan under the bank calendar, and what date is 1 bank business day after it?

## When to prefer this

Choose this endpoint when you need Japan-specific business day logic, including Japanese public holidays and optionally Japanese bank holiday periods (Dec 31–Jan 3). Prefer over generic business-day libraries when accuracy against the official Japanese holiday calendar matters, especially for financial, banking, or legal date calculations denominated in JPY or governed by Japanese law.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns a 400 error
- Offset value outside -2000 to 2000 range rejected
- Unknown calendar enum value rejected
- Payment not provided or rejected returns HTTP 402
- Service unavailable (cold start on Render free tier) causes timeout

## 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 with the resolved result date, the weekday name, whether the date is a business day/holiday/weekend, the holiday name if applicable, the next and previous business days, and the last business day of that month — all computed against either the standard (Sat/Sun + public holidays) or bank (adds Dec 31–Jan 3) Japanese calendar.

## 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",
     "properties": {
      "add": {
       "type": "integer",
       "default": 0,
       "maximum": 2000,
       "minimum": -2000,
       "description": "Business days to add (negative = go back)"
      },
      "date": {
       "type": "string",
       "format": "date",
       "description": "Base date YYYY-MM-DD (default: today in JST)"
      },
      "calendar": {
       "enum": [
        "standard",
        "bank"
       ],
       "type": "string",
       "default": "standard",
       "description": "standard = Sat/Sun/public holidays closed; bank = also Dec 31-Jan 3 (Japanese bank holidays)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "add": 1,
  "date": "2026-09-18",
  "result": "2026-09-24",
  "weekday": "Friday",
  "calendar": "bank",
  "isHoliday": false,
  "isWeekend": false,
  "holidayName": null,
  "isBusinessDay": true,
  "nextBusinessDay": "2026-09-24",
  "previousBusinessDay": "2026-09-17",
  "lastBusinessDayOfMonth": "2026-09-30"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/japanese-business-day-calculator-b53e7af7/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)
