About this endpoint
What it does
Calculates the number of working days between two dates for a given country. The response returns a data object with the calendar-day breakdown and the resulting working-day count.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| country | String | Yes | Country code. |
| start | String | Yes | Start date in date format. |
| end | String | Yes | End date in date format. |
Response
Returns a JSON object with a data object field. The data object contains integer counts for holidays, weekends, total_days, and working_days.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Result object containing the working-day breakdown. |
| 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. |