{"slug":"date-math-datemath-workers-dev-v1-free-slots-374a40","title":"Date Math","host":"date-math.datemath.workers.dev","method":"POST","resource":"https://date-math.datemath.workers.dev/v1/free_slots","category":"other","description":"Date Math: Find meeting times when everyone is free: intersects each participant's working hours (own time zone, workdays, country holidays) minus their busy blocks, then lists slots of the requested length. Up to 10 people, 14 days, optional buffer between meetings. Use for scheduling across calend","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":31,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"days":2,"duration_minutes":30,"from":"2026-11-10","max_slots":3,"participants":[{"busy":[{"end":"2026-11-10T02:00:00Z","start":"2026-11-10T01:00:00Z"}],"timezone":"Asia/Manila"},{"timezone":"Europe/London","work_end":"16:00","work_start":"08:00"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"buffer_minutes":{"default":0,"description":"Free time kept around busy blocks","maximum":120,"minimum":0,"type":"integer"},"days":{"default":5,"maximum":14,"minimum":1,"type":"integer"},"duration_minutes":{"maximum":720,"minimum":5,"type":"integer"},"from":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"max_slots":{"default":10,"maximum":50,"minimum":1,"type":"integer"},"not_before":{"description":"Earliest slot start: ISO 8601 with offset, or \"now\"","type":"string"},"participants":{"items":{"properties":{"busy":{"description":"Busy blocks, up to 100 per person (300 total)","items":{"properties":{"end":{"description":"ISO 8601 with offset","type":"string"},"start":{"description":"ISO 8601 with offset","type":"string"}},"required":["start","end"],"type":"object"},"maxItems":200,"type":"array"},"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"},"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"},"timezone":{"description":"IANA time zone, e.g. Asia/Manila","example":"Asia/Manila","type":"string"},"work_end":{"description":"Overrides the default work_end","pattern":"^([01]\\d|2[0-4]):[0-5]\\d$","type":"string"},"work_start":{"description":"Overrides the default work_start","pattern":"^([01]\\d|2[0-4]):[0-5]\\d$","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":["timezone"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"},"step_minutes":{"default":30,"description":"Slot start alignment","maximum":60,"minimum":5,"type":"integer"},"timezone":{"description":"Organizer's zone: defines the days searched and slot alignment (default: first participant's)","example":"Asia/Manila","type":"string"},"work_end":{"description":"Default end of working hours, 17:00","pattern":"^([01]\\d|2[0-4]):[0-5]\\d$","type":"string"},"work_start":{"description":"Default start of working hours, 09:00","pattern":"^([01]\\d|2[0-4]):[0-5]\\d$","type":"string"}},"required":["participants","duration_minutes"],"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":{"count":{"type":"integer"},"duration_minutes":{"type":"integer"},"free_windows":{"items":{"properties":{"end":{"type":"string"},"end_utc":{"type":"string"},"minutes":{"type":"integer"},"start":{"type":"string"},"start_utc":{"type":"string"}},"required":["start","end","start_utc","end_utc","minutes"],"type":"object"},"type":"array"},"range":{"properties":{"end":{"type":"string"},"start":{"type":"string"}},"required":["start","end"],"type":"object"},"slots":{"items":{"properties":{"end_utc":{"type":"string"},"local":{"items":{"properties":{"end":{"type":"string"},"start":{"type":"string"},"timezone":{"type":"string"}},"required":["timezone","start","end"],"type":"object"},"type":"array"},"start_utc":{"type":"string"}},"required":["start_utc","end_utc","local"],"type":"object"},"type":"array"},"timezone":{"type":"string"}},"required":["timezone","range","duration_minutes","free_windows","count","slots"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1464,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":50,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":24,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":35,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":31,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":40,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1437,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1722,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1414,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":33,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1232,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":76,"error":null}],"description_full":"Date Math: Find meeting times when everyone is free: intersects each participant's working hours (own time zone, workdays, country holidays) minus their busy blocks, then lists slots of the requested length. Up to 10 people, 14 days, optional buffer between meetings. Use for scheduling across calendars and time zones.","last_updated":"2026-11-09T11:11:35.262Z","schemes":["exact"]}