Overview
- Category
- Date & Time
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/holiday-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/holiday-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
year· number · required- Enter year.
region· string · required-
Enter region. Accepted values:
US_federal, Canada_common, UK_common.
{
"type": "object",
"properties": {
"year": {
"type": "number",
"description": "Enter year."
},
"region": {
"type": "string",
"description": "Enter region.",
"enum": [
"US_federal",
"Canada_common",
"UK_common"
]
}
},
"required": [
"year",
"region"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
holidays· array- Holiday dates produced by the tool.
holiday_count· number- Holidays produced by the tool.
weekend_holidays· number- Weekend holidays produced by the tool.
{
"type": "object",
"properties": {
"holidays": {
"type": "array",
"description": "Holiday dates produced by the tool."
},
"holiday_count": {
"type": "number",
"description": "Holidays produced by the tool."
},
"weekend_holidays": {
"type": "number",
"description": "Weekend holidays produced by the tool."
}
},
"additionalProperties": false
}
Holiday Calculator worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/holiday-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"year": 2027,
"region": "US_federal"
}'
{
"ok": true,
"data": {
"slug": "holiday-calculator",
"result": {
"values": {
"holidays": [
{
"holiday": "New Year",
"date": "2027-01-01",
"weekday": "Friday"
},
{
"holiday": "Martin Luther King Jr. Day",
"date": "2027-01-18",
"weekday": "Monday"
},
{
"holiday": "Memorial Day",
"date": "2027-05-31",
"weekday": "Monday"
},
{
"holiday": "Independence Day",
"date": "2027-07-04",
"weekday": "Sunday"
},
{
"holiday": "Labor Day",
"date": "2027-09-06",
"weekday": "Monday"
},
{
"holiday": "Thanksgiving",
"date": "2027-11-25",
"weekday": "Thursday"
},
{
"holiday": "Christmas",
"date": "2027-12-25",
"weekday": "Saturday"
}
],
"holiday_count": 7,
"weekend_holidays": 2
},
"display": {
"display": "[{\"holiday\":\"New Year\",\"date\":\"2027-01-01\",\"weekday\":\"Friday\"},{\"holiday\":\"Martin Luther King Jr. Day\",\"date\":\"2027-01-18\",\"weekday\":\"Monday\"},{\"holiday\":\"Memorial Day\",\"date\":\"2027-05-31\",\"weekday\":\"Monday\"},{\"holiday\":\"Independence Day\",\"date\":\"2027-07-04\",\"weekday\":\"Sunday\"},{\"holiday\":\"Labor Day\",\"date\":\"2027-09-06\",\"weekday\":\"Monday\"},{\"holiday\":\"Thanksgiving\",\"date\":\"2027-11-25\",\"weekday\":\"Thursday\"},{\"holiday\":\"Christmas\",\"date\":\"2027-12-25\",\"weekday\":\"Saturday\"}]"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.