Documentation

API URL


POST /calculate

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
{
  "start_date": "2025-07-01",
  "end_date": "2025-07-10",
  "region": "US"
}

Successful Response

Status
HTML
200 OK
Body
Code
{
  "working_days": 7,
  "start_date": "2025-07-01",
  "end_date": "2025-07-10",
  "region": "US",
  "holidays_used": [
    "2025-07-04"
  ]
}

Error Response

Example
Code
400 INVALID_DATE – Date could not be parsed
400 INVALID_REGION – Region code not valid
400 MISSING_INPUT – Missing end_date or offset
429 RATE_LIMIT – If limits exceeded (future use)

Last Updated:  May 4, 2026