GET /v1/business-daysBusiness Days Calculator
Business Utils lf-business-utils
Counts working days: how many there are between two dates, or what date you land on after adding or subtracting a number of them. Calculates business days between two dates, or adds/subtracts business days to/from a given date.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start | string | No | Start date ISO format |
end | string | No | End date ISO format |
add | string | No | Business days to add (+/-) |
Response Schema
success (boolean): Operation success
business_days (integer): Count of business days
total_days (integer): Total calendar days
weekends (integer): Weekend days
result_date (string): Result date when adding
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/business-days?start=<start>&end=<end>' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/business-days'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'start': '<start>', 'end': '<end>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())