Holiday-aware business-day calculator for 200+ countries
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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://2s.io/api/calendar/business-days
| Category | Code and developer |
|---|---|
| Provider host | 2s.io |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.0025 | 422 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"addDays": "2",
"country": "US",
"start": "2026-07-02"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$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"
}