{"slug":"2s-io-api-calendar-business-days-ca7f38","title":"Holiday-aware business-day calculator for 200+ countries","host":"2s.io","method":"GET","resource":"https://2s.io/api/calendar/business-days","category":"code","description":"Holiday-aware business-day calculator for 200+ countries. Three modes: pass start + addDays (signed integer) to shift a date by N business days; pass start + end to count business days between two dates (exclusive of start, inclusive of end); pass start alone to check one date (is it a business day,","price_listed":0.0025,"price_asked":0.0025,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":422,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"addDays":"2","country":"US","start":"2026-07-02"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"method":{"const":"GET"},"queryParams":{"properties":{"addDays":{"description":"Signed business days to add (XOR with end).","type":"string"},"country":{"description":"ISO 3166-1 alpha-2 country code.","type":"string"},"end":{"description":"End date YYYY-MM-DD to count business days to (XOR with addDays).","type":"string"},"region":{"description":"Optional subdivision code, e.g. CA, BY.","type":"string"},"start":{"description":"Anchor date, YYYY-MM-DD.","type":"string"},"types":{"description":"Optional holiday types treated as closures. Default public,bank.","type":"string"},"weekend":{"description":"Optional weekend days, comma-separated. Default sat,sun.","type":"string"}},"required":["country","start"]},"type":{"const":"http"}},"required":["type","method","queryParams"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0025,"price_match":true,"latency_ms":422,"error":null}],"description_full":"Holiday-aware business-day calculator for 200+ countries. Three modes: pass start + addDays (signed integer) to shift a date by N business days; pass start + end to count business days between two dates (exclusive of start, inclusive of end); pass start alone to check one date (is it a business day, which holiday, next/previous business day). Query: country (ISO 3166-1 alpha-2), start (YYYY-MM-DD), optional region (subdivision code), addDays XOR end, optional weekend (comma-separated days, default sat,sun — e.g. fri,sat for the Gulf), optional types (holiday types treated as closures, default public,bank). Skipped holidays are itemized in the response. Use for payment terms, SLA deadlines, and delivery-date math.","last_updated":"2026-09-09T13:12:34.106Z","schemes":["exact"]}