Documentation

API URL


POST /calculate

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
GET /api/v1/working-days?api_key=YOUR_API_KEY&start_date=2025-07-01&end_date=2025-07-15&region=US

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "working_days": 8,
    "start_date": "2025-07-01",
    "end_date": "2025-07-15",
    "region": "US",
    "holidays_used": [
      "2025-07-04"
    ]
  },
  "meta": {
    "batchSize": 1,
    "successCount": 1,
    "errorCount": 0,
    "processingTimeMs": 15,
    "timestamp": "2025-12-10T15:30:00.000Z"
  }
}

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