2s
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.
Offering
- Provider
- 2s.io
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- General Utilities
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://2s.io/api/calendar/business-days- MIME type
- application/json
- First seen
- 2026-10-16T01:52:40.118Z
- Last seen
- Tags
- public-records, identifiers, AI-agents, us-gov-data, X402, upto-billing, ai-gateway, agent-infrastructure
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.0025 USDC
Atomic price: 2500 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.0025 USDC
Atomic price: 2500 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2500",
"payTo": "0x2b6D4988Db4723E6908Db86Ab2b8dFBc51FC32C5"
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "2500",
"payTo": "TW6ntaGzvj63ZgPjszd4FCGmVTGfzv1MAYZbjYcyWhn"
}
]Observed health
- Status
- Healthy
- Latest latency
- 92 ms
- Average latency
- 346 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 13 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"const": "http"
},
"method": {
"const": "GET"
},
"queryParams": {
"properties": {
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code."
},
"start": {
"type": "string",
"description": "Anchor date, YYYY-MM-DD."
},
"addDays": {
"type": "string",
"description": "Signed business days to add (XOR with end)."
},
"end": {
"type": "string",
"description": "End date YYYY-MM-DD to count business days to (XOR with addDays)."
},
"region": {
"type": "string",
"description": "Optional subdivision code, e.g. CA, BY."
},
"weekend": {
"type": "string",
"description": "Optional weekend days, comma-separated. Default sat,sun."
},
"types": {
"type": "string",
"description": "Optional holiday types treated as closures. Default public,bank."
}
},
"required": [
"country",
"start"
]
}
},
"required": [
"type",
"method",
"queryParams"
]
}Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"input": {
"type": "object",
"properties": {
"type": {
"const": "http"
},
"method": {
"const": "GET"
},
"queryParams": {
"properties": {
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code."
},
"start": {
"type": "string",
"description": "Anchor date, YYYY-MM-DD."
},
"addDays": {
"type": "string",
"description": "Signed business days to add (XOR with end)."
},
"end": {
"type": "string",
"description": "End date YYYY-MM-DD to count business days to (XOR with addDays)."
},
"region": {
"type": "string",
"description": "Optional subdivision code, e.g. CA, BY."
},
"weekend": {
"type": "string",
"description": "Optional weekend days, comma-separated. Default sat,sun."
},
"types": {
"type": "string",
"description": "Optional holiday types treated as closures. Default public,bank."
}
},
"required": [
"country",
"start"
]
}
},
"required": [
"type",
"method",
"queryParams"
]
}
},
"required": [
"input"
]
}