Docs/Business Utils/GET /v1/business-days

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

ParameterTypeRequiredDescription
startstringNoStart date ISO format
endstringNoEnd date ISO format
addstringNoBusiness 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())