Japan Statutory Rest Day API: Labor Standards Act Art. 35

Japan's Labor Standards Act Article 35 requires at least one rest day per week. The company-designated rest day is the legal holiday (法定休日) — work on it requires a 35% wage premium, vs 25% for non-legal rest days. Critical for payroll and EOR systems.

Endpoint

GET https://torify.dev/v1/legal-holiday/check

Parameters

NameTypeRequiredDescriptionExample
date string Yes YYYY-MM-DD 2024-05-05
restDays string No CSV of company rest days (sun/mon/.../sat). First entry is legal holiday sun,sat

Response example

{ "ok": true, "data": { "isLegalHoliday": true, "overtimePremiumRate": 0.35 } }

Code examples

curl

curl "https://torify.dev/v1/legal-holiday/check?date=2024-05-05"

TypeScript (x402-fetch)

import { wrapFetchWithPayment } from 'x402-fetch';
import { privateKeyToAccount } from 'viem/accounts';

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPayment(
  'https://torify.dev/v1/legal-holiday/check?date=2024-05-05'
);
const data = await res.json();
console.log(data); // { ok: true, data: { ... } }

Python (requests)

import requests

# Free MCP tier (no auth) or API key (X-API-Key header)
res = requests.get(
    "https://torify.dev/v1/legal-holiday/check?date=2024-05-05",
    headers={"X-API-Key": "your_torify_pro_key"}
)
print(res.json())

Related endpoints

← All 36 endpoints

Pricing

$0.02 per call via x402 (USDC on Base). Or use a Pro API key ($49/mo, 10,000 calls/month).