GET /v1/holiday-listHoliday list
Business Utils lf-business-utils
Lists the public holidays for a country and year. Returns a list of public holidays for a given year and country. Defaults to current year and US.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
year | integer | No | Year (2020-2099) |
country | string | No | Country code (default US) |
Response Schema
success (boolean): Operation success
year (integer): Year
country (string): Country code
holidays (array): Holiday objects with name and date
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/holiday-list?year=2024' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/holiday-list'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'year': 2024}
response = requests.get(url, headers=headers, params=params)
print(response.json())