{"partialResults":false,"resources":[{"accepts":[{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x7eC21Ee3AA308D2cbB8c65ef0E89af2a30101656","scheme":"exact"}],"description":"Date Math: Job schedules that skip weekends and public holidays, which cron cannot express: \"3rd business day of the month at 09:00\", \"last business day\", \"every Monday, or the next business day if it is a holiday\", or any cron with a holiday rule. Returns the next runs and whether it runs today. DST-aware. Use for payroll, billing, reports and batch jobs.","extensions":{"bazaar":{"info":{"input":{"body":{"count":2,"country":"GB","from":"2026-11-10","n":3,"rule":"nth_business_day","timezone":"Europe/London"},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"adjust":"none","check":{"date":"2026-11-10","is_business_day":true,"reason":null,"run_times":[],"runs":false,"weekday":"Tuesday"},"count":2,"description":"3rd business day of every month at 09:00 (Europe/London); holidays: GB public holidays","from":"2026-11-10T00:00:00+00:00","rule":"nth_business_day","runs":[{"adjusted":false,"date":"2026-12-03","datetime":"2026-12-03T09:00:00+00:00","is_business_day":true,"scheduled_date":"2026-12-03","utc":"2026-12-03T09:00:00Z","weekday":"Thursday"}],"timezone":"Europe/London"},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"adjust":{"default":"next","description":"For weekend/holiday dates. modified_following: next, unless that is next month, then previous","enum":["next","previous","modified_following","modified_preceding","nearest","skip","none"],"type":"string"},"check_date":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"count":{"default":5,"description":"Runs to return","maximum":50,"minimum":1,"type":"integer"},"country":{"description":"ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days","example":"US","pattern":"^[A-Za-z]{2}$","type":"string"},"day":{"description":"1–31 (31 = month end in short months) or \"last\"","oneOf":[{"maximum":31,"minimum":1,"type":"integer"},{"enum":["last"],"type":"string"}]},"expression":{"description":"Cron, 5 or 6 fields, max 96 runs a day","type":"string"},"from":{"description":"Runs at or after: date, local datetime or ISO 8601. Default now","type":"string"},"holidays":{"description":"Extra dates excluded from business-day counts (rest days from workdays are always excluded)","items":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"maxItems":1000,"type":"array"},"months":{"description":"Only these months, e.g. [1,4,7,10]","items":{"maximum":12,"minimum":1,"type":"integer"},"maxItems":12,"minItems":1,"type":"array"},"n":{"description":"1 = first business day of the month, -1 = last, -2 = second to last","maximum":23,"minimum":-23,"type":"integer"},"rule":{"description":"nth_business_day needs n, day_of_month needs day, weekly needs weekdays, cron needs expression","enum":["nth_business_day","day_of_month","weekly","cron"],"type":"string"},"time":{"default":"09:00","description":"Local HH:MM (not for cron)","type":"string"},"timezone":{"description":"IANA zone (default UTC)","type":"string"},"weekdays":{"description":"0 = Sunday, e.g. [1] for Mondays","items":{"maximum":6,"minimum":0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},"workdays":{"description":"Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat","example":[1,2,3,4,5],"items":{"maximum":6,"minimum":0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"}},"required":["rule"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"adjust":{"type":"string"},"check":{"properties":{"date":{"type":"string"},"is_business_day":{"type":"boolean"},"reason":{"type":["string","null"]},"run_times":{"items":{"properties":{"datetime":{"type":"string"},"scheduled_date":{"type":"string"},"utc":{"type":"string"}},"required":["datetime","utc","scheduled_date"],"type":"object"},"type":"array"},"runs":{"type":"boolean"},"scheduled_run_moved_to":{"type":"string"},"weekday":{"type":"string"}},"required":["date","weekday","is_business_day","reason","runs","run_times"],"type":"object"},"count":{"type":"integer"},"description":{"type":"string"},"from":{"type":"string"},"rule":{"type":"string"},"runs":{"items":{"properties":{"adjusted":{"type":"boolean"},"date":{"type":"string"},"datetime":{"type":"string"},"is_business_day":{"type":"boolean"},"reason":{"type":"string"},"scheduled_date":{"type":"string"},"utc":{"type":"string"},"weekday":{"type":"string"}},"required":["date","datetime","utc","weekday","scheduled_date","adjusted","is_business_day"],"type":"object"},"type":"array"},"timezone":{"type":"string"}},"required":["rule","description","timezone","adjust","from","count","runs","check"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"iconUrl":"https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1794226386/bazaar-icons/53a3e11863560f54.png","lastUpdated":"2026-11-10T13:57:21.375Z","quality":{"l30DaysTotalCalls":1,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-10T13:57:20.962Z"},"resource":"https://date-math.datemath.workers.dev/v1/business_day_schedule","serviceName":"Date Math","tags":["last business day of month","nth business day","business day cron","holiday aware schedule","modified following"],"type":"http","x402Version":2},{"accepts":[{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x7eC21Ee3AA308D2cbB8c65ef0E89af2a30101656","scheme":"exact"}],"description":"Date Math: Is a date a business day? If not, why (weekend, or which public holiday). Also the next and previous business day, and the month's business-day count, first and last business day. Use for office-open checks, shipping cut-offs, settlement dates. Country holidays, custom holidays and custom workweeks (e.g. Sun–Thu, Mon–Sat).","extensions":{"bazaar":{"info":{"input":{"body":{"country":"PH","date":"2026-12-25"},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"date":"2026-12-25","holiday":"Christmas Day","is_business_day":false,"month":{"business_day_number":null,"business_days":21,"first_business_day":"2026-12-01","last_business_day":"2026-12-31"},"next_business_day":"2026-12-28","previous_business_day":"2026-12-24","reason":"holiday","weekday":"Friday"},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"country":{"description":"ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days","example":"US","pattern":"^[A-Za-z]{2}$","type":"string"},"date":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"holidays":{"description":"Extra dates excluded from business-day counts (rest days from workdays are always excluded)","items":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"maxItems":1000,"type":"array"},"workdays":{"description":"Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat","example":[1,2,3,4,5],"items":{"maximum":6,"minimum":0,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"}},"required":["date"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"date":{"type":"string"},"holiday":{"description":"Holiday name if the date is a holiday","type":["string","null"]},"is_business_day":{"type":"boolean"},"month":{"properties":{"business_day_number":{"description":"Which business day of the month this date is (1 = first); null if not a business day","type":["integer","null"]},"business_days":{"type":"integer"},"first_business_day":{"type":["string","null"]},"last_business_day":{"type":["string","null"]}},"required":["business_days","first_business_day","last_business_day","business_day_number"],"type":"object"},"next_business_day":{"type":"string"},"previous_business_day":{"type":"string"},"reason":{"description":"Why it is not a business day; null if it is","enum":["weekend","holiday",null],"type":["string","null"]},"weekday":{"type":"string"}},"required":["date","weekday","is_business_day","reason","holiday","next_business_day","previous_business_day","month"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-09T11:11:26.562Z","quality":{"l30DaysTotalCalls":2,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-09T11:11:26.449Z"},"resource":"https://date-math.datemath.workers.dev/v1/business_day","serviceName":"Date Math","tags":["business day","is business day","next business day","business day calculator","shipping cutoff"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"4dyxpfhnuhzcqaa"}}
