API Documentation

Getting Started

The BusinessDays API allows you to calculate business days, check holidays, and perform working hours arithmetic across 9+ countries.

curl -X POST https://api.businessdays.io/workdays/add \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[object Object]'

Authentication

All API requests require an API key. Include your key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Endpoints

POST /workdays/add

Add business days to a date

POST /workdays/subtract

Subtract business days from a date

POST /workdays/calculate

Calculate business days between two dates

POST /workdays/is-business-day

Check if a date is a business day

GET /calendars/:id/holidays

Get holidays for a calendar

Full interactive documentation coming soon!

Get Your API Key