# Toolsmith Holidays & Business Day API

> Toolsmith Holidays & Business Day API is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns public holidays for any country and year, and optionally checks whether a specific date is a business day, weekend, or holiday.

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/time/holidays
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolsmith-holidays-business-day-api-6d473401
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DG93fAKRoLeiltSWDWaFe

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 toolsmith-holidays-business-day-api-6d473401
```

Example prompt: Can you tell me all the public holidays in Germany for 2025, and also check whether December 26, 2025 is a business day?

## When to prefer this

Use this endpoint when you need authoritative public holiday data for any of 100+ countries, especially when combined with business-day validation logic. Prefer this over calendar libraries when you need a live, maintained, multi-country dataset without managing holiday data yourself. Ideal for scheduling, payroll, contract deadline, and compliance use cases.

## Known failure modes

- Missing required country parameter returns an error
- Invalid ISO country code returns an error or empty holidays list
- Unsupported country (not among 100+ covered) may return empty or error
- Invalid date format (not YYYY-MM-DD) for optional date parameter causes error
- Invalid year value may return error

## How this service works

Public holidays for any country and year, plus optional business-day checking. Pass country= (ISO alpha-2) and year=; add date= to learn whether that day is a business day, whether it is a weekend or public holiday, the holiday name, and the next business day. Covers 100+ countries. JSON response. $0.01 USDC per call, pay via x402, no API key.

## Output

A JSON object listing all public holidays for the requested country and year, each with date and holiday name. If a date query parameter is provided, the response also includes whether that date is a business day, whether it falls on a weekend or public holiday, the name of the holiday (if any), and the next business day.

## 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": [
      "country"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD to run a business-day check, optional"
      },
      "year": {
       "type": "integer",
       "description": "Year, default current"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166 alpha-2 country code, e.g. US, GB, DE"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "country": "US",
  "holidays": [
   {
    "date": "2026-01-01",
    "name": "New Year's Day",
    "global": true
   }
  ],
  "dateCheck": {
   "date": "2026-07-04",
   "isBusinessDay": false,
   "isPublicHoliday": true,
   "nextBusinessDay": "2026-07-06"
  },
  "holidayCount": 11
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolsmith-holidays-business-day-api-6d473401/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolsmith-api.dassad10.workers.dev](https://www.zero.xyz/host/toolsmith-api.dassad10.workers.dev/llms.txt)
