About this endpoint
What it does
Counts the working days between two dates for a given country. It returns a JSON object with a data object containing the calendar-day breakdown and the calculated working_days value.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| country | String | Yes | Country code used to determine public holidays. |
| start | String | Yes | Start date in date format (YYYY-MM-DD). |
| end | String | Yes | End date in date format (YYYY-MM-DD). |
Response
Returns a JSON object with a data object. The data object contains four integer fields: holidays, weekends, total_days, and working_days. holidays counts public holidays that fell on a weekday, weekends counts Saturday and Sunday days in the range, total_days counts calendar days between start and end inclusive, and working_days counts Mon–Fri days excluding public holidays.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Container for the calculated day counts. |
| data.holidays | Integer | No | Public holidays that fell on a weekday (reduced working day count). |
| data.weekends | Integer | No | Saturday and Sunday days in the range. |
| data.total_days | Integer | No | Calendar days between start and end (inclusive). |
| data.working_days | Integer | No | Mon–Fri days excluding public holidays. |