{"uid":"cap_H3FQvD8gFjdO7i_nvrt1U","slug":"workday-calendar-api-business-day-count-d8761a89","name":"Workday Calendar API – Business Day Count","description":"Number of business days in [start, end] inclusive (max 3 years), with the holidays that fell on weekdays.","url":"https://workday-calendar.regnotes.workers.dev/v1/business-days/count?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["country","start","end"],"properties":{"end":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"start":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"country":{"enum":["US","CA","MX","BR","AR","CL","CO","PE","GB","IE","FR","DE","NL","BE","LU","CH","AT","IT","ES","PT","SE","NO","DK","FI","PL","CZ","HU","RO","GR","TR","IL","AE","SA","EG","ZA","NG","KE","IN","PK","BD","LK","SG","MY","ID","TH","VN","PH","HK","TW","CN","JP","KR","AU","NZ","UA"],"type":"string","description":"ISO 3166-1 alpha-2 country code"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"end":"2026-12-31","start":"2026-12-01","country":"GB","business_days":21,"calendar_days":31,"holidays_on_weekdays":[{"date":"2026-12-25","name":"Christmas Day"},{"date":"2026-12-28","name":"Boxing Day (observed)"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ckA7-clpVqeSKT5mGNTYT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the number of business days between two dates (inclusive) for a given country, along with any public holidays that fell on weekdays in that range.","exampleAgentPrompt":"How many business days are there between January 1 and March 31, 2025 in the US, and which public holidays fall on weekdays during that period?","exampleUseCases":[{"title":"Contract SLA deadline calculation","prompt":"I need to know how many business days there are between June 1 and June 30, 2025 in the UK so I can verify whether a 20-business-day SLA window fits within the month."},{"title":"Payroll period working day count","prompt":"Can you tell me how many working days are in the Canadian pay period from October 1 to October 31, 2025, and which statutory holidays land on weekdays?"},{"title":"Project timeline estimation","prompt":"How many business days do we have between March 15 and April 30, 2025 in Germany? I'm planning a sprint and need to know the actual working days, accounting for German public holidays."}],"resultDescription":"A JSON object containing the start date, end date, country code, the count of business days in the range (inclusive), the total calendar days, and an array of holiday objects (each with a date and name) that fell on weekdays within the range.","failureModes":["Invalid date format (must be YYYY-MM-DD) returns a validation error","Date range exceeds 3 years returns an error","Unsupported country code returns a validation error","start date after end date may return zero or an error","Missing required query parameters (country, start, end) returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a precise count of business days between two dates for a specific country, including awareness of that country's national public holidays. It supports over 50 countries and handles up to a 3-year window. Prefer this over generic date-math libraries when holiday-awareness and multi-country support are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:04:41.876Z","isFirstParty":false,"canonicalSlug":"workday-calendar-api-business-day-count-d8761a89"}