# Workday Calendar API – Business Day Count

> Workday Calendar API – Business Day Count is a paid API for AI agents from workday-calendar.regnotes.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns the number of business days between two dates (inclusive) for a given country, along with any public holidays that fell on weekdays in that range.

## Facts

- Endpoint: GET https://workday-calendar.regnotes.workers.dev/v1/business-days/count?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/workday-calendar-api-business-day-count-d8761a89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H3FQvD8gFjdO7i_nvrt1U

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 workday-calendar-api-business-day-count-d8761a89
```

Example prompt: How many business days are there between January 1 and March 31, 2025 in the US, and which public holidays fall on weekdays during that period?

## When to prefer this

Use this endpoint when you need a precise count of business days between two dates for a specific country, including awareness of that country's national public holidays. It supports over 50 countries and handles up to a 3-year window. Prefer this over generic date-math libraries when holiday-awareness and multi-country support are required.

## Known failure modes

- Invalid date format (must be YYYY-MM-DD) returns a validation error
- Date range exceeds 3 years returns an error
- Unsupported country code returns a validation error
- start date after end date may return zero or an error
- Missing required query parameters (country, start, end) returns a 400 error

## How this service works

Number of business days in [start, end] inclusive (max 3 years), with the holidays that fell on weekdays.

## Output

A JSON object containing the start date, end date, country code, the count of business days in the range (inclusive), the total calendar days, and an array of holiday objects (each with a date and name) that fell on weekdays within the range.

## 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",
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "start": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "country": {
       "enum": [
        "US",
        "CA",
        "MX",
        "BR",
        "AR",
        "CL",
        "CO",
        "PE",
        "GB",
        "IE",
        "FR",
        "DE",
        "NL",
        "BE",
        "LU",
        "CH",
        "AT",
        "IT",
        "ES",
        "PT",
        "SE",
        "NO",
        "DK",
        "FI",
        "PL",
        "CZ",
        "HU",
        "RO",
        "GR",
        "TR",
        "IL",
        "AE",
        "SA",
        "EG",
        "ZA",
        "NG",
        "KE",
        "IN",
        "PK",
        "BD",
        "LK",
        "SG",
        "MY",
        "ID",
        "TH",
        "VN",
        "PH",
        "HK",
        "TW",
        "CN",
        "JP",
        "KR",
        "AU",
        "NZ",
        "UA"
       ],
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "end": "2026-12-31",
  "start": "2026-12-01",
  "country": "GB",
  "business_days": 21,
  "calendar_days": 31,
  "holidays_on_weekdays": [
   {
    "date": "2026-12-25",
    "name": "Christmas Day"
   },
   {
    "date": "2026-12-28",
    "name": "Boxing Day (observed)"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/workday-calendar-api-business-day-count-d8761a89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workday-calendar.regnotes.workers.dev](https://www.zero.xyz/host/workday-calendar.regnotes.workers.dev/llms.txt)
