{"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: How many days, weeks, months or business days between two dates or datetimes: calendar (Y/M/D), totals, and business days (weekdays in [from, to) minus holidays; pass country to exclude its public holidays). Use for age, tenure, countdowns, notice periods and working days until a deadline.","extensions":{"bazaar":{"info":{"input":{"body":{"country":"US","from":"2026-01-31","to":"2026-03-15"},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"business_days":29,"calendar":{"days":15,"months":1,"years":0},"direction":"forward","from":"2026-01-31","iso_duration":"P1M15D","to":"2026-03-15","total_days":43,"total_weeks":6},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"description":"business_days counts working days (default Mon–Fri, see workdays) in [from, to) minus holidays; only for date inputs.","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"},"from":{"description":"YYYY-MM-DD, or ISO 8601 datetime with Z or offset","example":"2026-11-07T14:30:00Z","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"},"to":{"description":"YYYY-MM-DD, or ISO 8601 datetime with Z or offset","example":"2026-11-07T14:30:00Z","type":"string"},"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":["from","to"],"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":{"business_days":{"description":"Weekdays in [from, to) minus holidays (date inputs only)","type":"integer"},"calendar":{"properties":{"days":{"type":"integer"},"months":{"type":"integer"},"years":{"type":"integer"}},"required":["years","months","days"],"type":"object"},"direction":{"enum":["forward","backward"],"type":"string"},"from":{"type":"string"},"iso_duration":{"example":"P1M15D","type":"string"},"to":{"type":"string"},"total_days":{"type":"integer"},"total_hours":{"description":"Datetime inputs only","type":"integer"},"total_minutes":{"type":"integer"},"total_seconds":{"type":"integer"},"total_weeks":{"type":"integer"}},"required":["from","to","direction","total_days","total_weeks","calendar","iso_duration"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-09T11:11:07.225Z","quality":{"l30DaysTotalCalls":2,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-09T11:11:06.229Z"},"resource":"https://date-math.datemath.workers.dev/v1/diff","serviceName":"Date Math","tags":["days between dates","business days between","date difference","working days count","age calculator"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"fzknjy6nnxby6aa"}}
