# AgentRXI Public Holidays & Business Day Calculator

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

Returns public holidays for 100+ countries (with optional state/province) 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://agentrxi.com/v1/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-public-holidays-business-day-calculator-43485e1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YkEFW9WraZChXX2b2ZSAR

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 agentrxi-public-holidays-business-day-calculator-43485e1c
```

Example prompt: What are all the public holidays in Canada (Ontario) for 2025, and how many business days are there between January 1 and June 30?

## 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 accounts for local holidays. Prefer it over generic date libraries when local holiday awareness is required and over web search when structured, machine-readable calendar data is needed.

## Known failure modes

- Missing required 'country' query parameter returns an error
- Invalid or unsupported country ISO code returns no results or an error
- Invalid date format (non-YYYY-MM-DD) causes a bad request
- Unsupported region/state code may return no region-specific holidays
- Requesting a year far outside supported range may return empty or error

## 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 for the specified country/region and year, including holiday names and dates. For business-day math queries, also returns 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/agentrxi-public-holidays-business-day-calculator-43485e1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
