# Public Holidays & Business Days (200+ Countries)

> Public Holidays & Business Days (200+ Countries) is a paid API for AI agents from business-days-production.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-30).

Lists public holidays, checks business day status, and adds/subtracts/counts business days for 200+ countries and their regions.

## Facts

- Endpoint: GET https://business-days-production.up.railway.app/v1/calendar/business-days?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-business-days-200-countries-ebf41d74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WJiCoHOR_Eeo88gRfex-Z

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 public-holidays-business-days-200-countries-ebf41d74
```

Example prompt: Is December 23rd 2026 a business day in Germany, and if not, what date falls 3 business days after it — accounting for German public holidays?

## When to prefer this

Use this endpoint when an agent needs to compute business-day-aware deadlines, delivery dates, or payment due dates for any of 200+ countries and their sub-regions, especially when national public holidays must be honoured. Prefer this over generic date arithmetic libraries when country-specific public holiday data is required or when regional holidays (e.g. German Bundesländer) matter.

## Known failure modes

- Missing required 'country' parameter returns a validation error
- Invalid ISO2 country code returns an error or empty holiday list
- Unsupported region/state code may be silently ignored or return an error
- Invalid date format (not YYYY-MM-DD) causes a parsing error
- Conflicting parameters (e.g. both 'add' and 'until') may produce unexpected behavior
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Public holidays for 200+ countries and their regions and states: list a year's holidays, check whether a date is a business day, add or subtract N business days, or count business days between two dates, honouring national and optional regional holidays and configurable weekend days. Use when an agent must compute a payment, delivery or legal deadline in business days, or check whether a date is a public holiday in a given country or region.

## Output

Returns a JSON object containing the result date after adding/subtracting business days, whether the start date is a business day, a list of public holidays skipped during calculation, the country and optional region used, and the number of days added. For year-listing mode, returns all public holidays for that country and year.

## 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": {
      "add": {
       "type": "integer",
       "description": "Business days to add (negative to subtract)"
      },
      "date": {
       "type": "string",
       "description": "Start date YYYY-MM-DD (default today)"
      },
      "year": {
       "type": "integer",
       "description": "Year to list all public holidays"
      },
      "until": {
       "type": "string",
       "description": "End date YYYY-MM-DD to count business days between"
      },
      "region": {
       "type": "string",
       "description": "Optional state/region code, e.g. BY"
      },
      "country": {
       "type": "string",
       "description": "ISO2 country, e.g. DE"
      },
      "weekend": {
       "type": "string",
       "description": "Weekend days as numbers 0-6 (0=Sunday), default 0,6"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "add": 3,
  "date": "2026-12-23",
  "legal": {
   "terms": "https://business-days-production.up.railway.app/terms",
   "privacy": "https://business-days-production.up.railway.app/privacy"
  },
  "status": "ok",
  "country": "DE",
  "skipped": [
   {
    "date": "2026-12-25",
    "name": "Weihnachtstag"
   },
   {
    "date": "2026-12-26",
    "name": "Zweiter Weihnachtstag"
   }
  ],
  "use_when": "Use when an agent must compute a payment, delivery or legal deadline in business days, or check whether a date is a public holiday in a given country or region.",
  "result_date": "2026-12-29",
  "is_business_day": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-business-days-200-countries-ebf41d74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from business-days-production.up.railway.app](https://www.zero.xyz/host/business-days-production.up.railway.app/llms.txt)
