# Agent Hub Public Holidays & Business Day Calculator

> Agent Hub Public Holidays & Business Day Calculator is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Returns public holidays for 100+ countries (with optional region/state) and performs business-day math: count business days between dates, add N business days to a date, or check if a date is a business day.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-public-holidays-business-day-calculator-a8c20764
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-6ZrplFODCyGD-baIUSxi

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 agent-hub-public-holidays-business-day-calculator-a8c20764
```

Example prompt: How many business days are there between March 3 and April 18, 2025 in the US? Also, can you list the public holidays in that period?

## When to prefer this

Choose this endpoint when you need authoritative public holiday data for a specific country or subnational region, or when you need to perform business-day arithmetic (counting, adding, or validating) that correctly accounts for local public holidays. Prefer this over generic calendar APIs when regional holidays (e.g., Ontario vs. Quebec) matter, or when you need to combine holiday lookup with business-day math in a single call.

## Known failure modes

- Missing required 'country' query parameter returns an error
- Invalid or unsupported ISO country code returns an error or empty result
- Region/province code not recognized for the given country may return no regional holidays
- Date format not in YYYY-MM-DD causes a parsing error
- Year out of supported range may return empty or error
- No public holidays data available for an obscure country

## How this service works

Public holidays for 100+ countries (optional state/province), plus business-day math: count business days between two dates, add N business days to a date, or check if a date is a business day.

## Output

Returns a list of public holidays (names, dates) for the requested country and optional region/year, plus business-day computation results such as the count of business days between two dates, the resulting date after adding N business days, or a boolean indicating whether a given date is a 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": {
      "to": {
       "type": "string",
       "description": "YYYY-MM-DD, counts business days from..to"
      },
      "from": {
       "type": "string",
       "description": "YYYY-MM-DD"
      },
      "year": {
       "type": "integer"
      },
      "region": {
       "type": "string",
       "description": "Optional state/province code, e.g. ON"
      },
      "country": {
       "type": "string",
       "description": "ISO 2-letter code, e.g. US, CA, GB"
      },
      "add_business_days": {
       "type": "integer",
       "description": "Adds N business days to from"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-public-holidays-business-day-calculator-a8c20764/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
