Public Holidays & Business Days
business_dayUse when an agent must know if a date is a business day in a country, or compute a due date: weekend or holiday (with name), previous/next business day, date plus N business days (add=), business days until a date (to=). 247 countries, 2026-2028, optional state/province (region=), local weekends (e.g. Fri-Sat). Bad input: HTTP 400, no charge. Price: 0.002 USDC per successful call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional end date YYYY-MM-DD (>= date): count business days from date to it, both included. | |
| add | No | Optional: number of business days to add (negative = go back), -260 to 260. | |
| date | No | Day as YYYY-MM-DD. Optional, default: today (UTC). | |
| region | No | Optional state/province for regional holidays, e.g. BY or DE-BY (Bavaria), CA (California), 9 (Vienna). Listed per country in GET /v1/holiday-countries. | |
| country | Yes | 2-letter ISO country code, e.g. AT, DE, US, GB, FR, JP, IN, BR, AE. 247 countries; free list: GET /v1/holiday-countries. |