Count business days between two dates
business_days_betweenRead-onlyIdempotent
Count business days between two dates in a country (and region), excluding weekends and public holidays. The end date is excluded unless inclusive is true. Returns business, weekend and holiday day counts and the holidays in the range. Read-only. Same engine, cache and limits as GET /v1/between.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date, YYYY-MM-DD (2020-2035). | |
| from | Yes | Start date, YYYY-MM-DD (2020-2035). | |
| types | No | Optional holiday types that close business days: comma list of public, bank (default: public; "all" = public,bank). | |
| region | No | Optional region/state code for countries with regional holidays, e.g. DE-BY, US-CA (or just BY). | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, DE, GB. See list_countries. | |
| weekend | No | Optional weekend days, comma list of day names like "sat,sun" (default) or "fri,sat", or "none". | |
| inclusive | No | Count the end date too (default false). |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| region | No | ||
| country | No | ||
| weekend | No | ||
| holidays | No | ||
| inclusive | No | ||
| holiday_days | No | ||
| weekend_days | No | ||
| business_days | Yes | ||
| calendar_days | No | ||
| holiday_types | No | ||
| holidays_truncated | No |