# Citiview Public Holidays & Business Day Calculator

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

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

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 citiview-public-holidays-business-day-calculator-d77babdf
```

Example prompt: How many business days are there between March 3 and April 18, 2025 in the US? Also, what public holidays fall in that range?

## When to prefer this

Choose this endpoint when you need accurate public holiday data across 100+ countries with optional sub-national (state/province) granularity, or when you need to perform business-day arithmetic (count days between dates, add business days, check if a date is a working day) that respects country-specific and regional holiday calendars. It is especially useful for scheduling, payroll, invoice due dates, and SLA calculations that must account for local holidays.

## Known failure modes

- Missing required 'country' query parameter returns a 400 error
- Invalid or unsupported ISO country code returns an error or empty holiday list
- Malformed date format (not YYYY-MM-DD) causes a parsing error
- Missing 'from' date when using 'add_business_days' or date-range parameters returns an error
- Unsupported region/province code may return no regional holidays or an 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 JSON object containing a list of public holidays for the specified country (and optional region/year), along with computed business-day 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/citiview-public-holidays-business-day-calculator-d77babdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
