# Torii Japan Business Calendar — Add Business Days

> Torii Japan Business Calendar — Add Business Days is a paid API for AI agents from torii-gateway-production.ichis-lab.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Given a base date and an integer N, returns the Japanese business date that is N business days later (or earlier), accounting for Japanese national holidays.

## Facts

- Endpoint: GET https://torii-gateway-production.ichis-lab.workers.dev/v1/jp-biz-calendar/add-business-days?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/torii-japan-business-calendar-add-business-days-d06fbbb5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y32WJ4M49S9Eh-uOLRF8s

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 torii-japan-business-calendar-add-business-days-d06fbbb5
```

Example prompt: What date is 5 Japanese business days after 2026-01-05? Use the Japan business calendar that handles national holidays.

## When to prefer this

Use this endpoint when you need to offset a date by a precise number of Japanese business days and must correctly skip Japanese national holidays (not just weekends). It is ideal for financial settlement calculations (T+N), payroll due dates, contract deadlines, and logistics scheduling within Japan. Prefer it over generic business-day libraries that lack Japan-specific holiday data, and over the sibling 'is-business-day' endpoint when you need forward/backward date arithmetic rather than a simple yes/no check.

## Known failure modes

- 404 (not charged): requested result date falls outside the years covered by the upstream holiday CSV
- 402: payment not yet sent — caller must resend with a valid x402 PAYMENT-SIGNATURE header
- 400: missing or malformed required query parameters (date not in YYYY-MM-DD format, n out of -3650..3650 range)
- 5xx: upstream gateway error (not charged)

## How this service works

Pay-per-call HTTP APIs for Japanese public data, metered with x402 (HTTP 402 + PAYMENT-SIGNATURE). Send a plain GET to receive 402 with the price and payment requirements, then resend the request with a signed payment. Only 2xx responses are charged; 4xx and 5xx are free. Per-operation payment metadata is published under the `x-payment-info` extension.

## Output

A JSON object containing the computed result date (ISO 8601), the original base date, the N value applied, plus metadata fields: whether the data is stale, the source name (Cabinet Office of Japan), license ID, attribution string in Japanese, terms URL, and the timestamp the data was fetched.

## 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",
      "n"
     ],
     "properties": {
      "n": {
       "type": "integer",
       "maximum": 3650,
       "minimum": -3650,
       "description": "Business days to add; negative goes backwards. 0 returns the base date if it is a business day, else the next one (never the previous). From a non-business base date, n=1 lands on the same day as n=0."
      },
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Base date, in YYYY-MM-DD (ISO 8601 calendar date, interpreted in UTC). Results outside the years covered by the upstream CSV return 404 and are not charged."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "n": 5,
   "date": "2026-01-05",
   "result": "2026-01-13"
  },
  "meta": {
   "stale": false,
   "source_id": "jp-biz-calendar",
   "terms_url": "https://www.cao.go.jp/notice/rule.html",
   "fetched_at": "2026-09-21T03:00:00.000Z",
   "license_id": "PDL-1.0",
   "attribution": "出典:内閣府ウェブサイト(https://www8.cao.go.jp/chosei/shukujitsu/gaiyou.html)を加工して作成",
   "source_name": "内閣府「国民の祝日について」",
   "freshness_class": "static"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/torii-japan-business-calendar-add-business-days-d06fbbb5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from torii-gateway-production.ichis-lab.workers.dev](https://www.zero.xyz/host/torii-gateway-production.ichis-lab.workers.dev/llms.txt)
