Api Endpoint

Business Days and Holidays

Business days and public holidays: check if a date is a business day, add or subtract N business days, count business days between dates, or list holidays, for 250 countries, 630 subdivisions (e.g. US-NY, GB-ENG) and 31 stock exchanges, 2025-2030. Use for payment due dates, T+N settlement, delivery estimates and SLAs. Data: python-holidays (MIT). Signed receipt.

Open interactive test console

Offering

Provider
api.stablecoingateways.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.stablecoingateways.com/v1/business-days
MIME type
application/json
First seen
2026-10-23T22:13:16.843Z
Last seen
Tags
business-days, Holidays, calendar, dates, trading-days

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
1107 atomic units
Atomic price: 1107 · Network: xrpl:0 · Asset: XRP · Scheme: exact
Payment option 3
0.001 USDC
Atomic price: 1000 · Network: eip155:84532 · Asset: USDC · Scheme: exact
Payment option 4
1107 atomic units
Atomic price: 1107 · Network: xrpl:1 · Asset: XRP · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x39BF4378b74f9E19c5113b00b01f57d94537bad1"
  },
  {
    "scheme": "exact",
    "network": "xrpl:0",
    "asset": "XRP",
    "amount": "1107",
    "payTo": "r3BsahzSMtF4HiJuL8HMf1se6T1JtMB6hg"
  },
  {
    "scheme": "exact",
    "network": "eip155:84532",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "amount": "1000",
    "payTo": "0x3177FA489523ddF60f293898f7Ee5912576f3d9b"
  },
  {
    "scheme": "exact",
    "network": "xrpl:1",
    "asset": "XRP",
    "amount": "1107",
    "payTo": "rDbkEYdqLHcnWAHAVFwhH6KM6puCPbXNgs"
  }
]

Observed health

Status
Healthy
Latest latency
354 ms
Average latency
632 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "headers": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "method": {
      "enum": [
        "GET"
      ],
      "type": "string"
    },
    "queryParams": {
      "additionalProperties": false,
      "properties": {
        "calendar": {
          "description": "ISO country (US), country-subdivision (US-NY) or exchange (FIN-XNYS); default US",
          "type": "string"
        },
        "date": {
          "description": "YYYY-MM-DD; default today",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "days": {
          "description": "Business days to add (op=add), integer, |days|<=1000",
          "pattern": "^-?\\d{1,4}$",
          "type": "string"
        },
        "end": {
          "description": "End date for op=between",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "op": {
          "description": "Operation; default check",
          "enum": [
            "check",
            "add",
            "between",
            "list"
          ],
          "type": "string"
        },
        "year": {
          "description": "Year for op=list, 2025-2030",
          "pattern": "^20(2[5-9]|30)$",
          "type": "string"
        }
      },
      "type": "object"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method"
  ],
  "type": "object"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "calendar": {
              "description": "ISO country (US), country-subdivision (US-NY) or exchange (FIN-XNYS); default US",
              "type": "string"
            },
            "date": {
              "description": "YYYY-MM-DD; default today",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "days": {
              "description": "Business days to add (op=add), integer, |days|<=1000",
              "pattern": "^-?\\d{1,4}$",
              "type": "string"
            },
            "end": {
              "description": "End date for op=between",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "type": "string"
            },
            "op": {
              "description": "Operation; default check",
              "enum": [
                "check",
                "add",
                "between",
                "list"
              ],
              "type": "string"
            },
            "year": {
              "description": "Year for op=list, 2025-2030",
              "pattern": "^20(2[5-9]|30)$",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "description": "Business-day answer for the calendar: is_business_day / result date / count / holiday list, with coverage years",
              "properties": {
                "calendar": {
                  "type": "string"
                },
                "coverage": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "days": {
                  "type": "integer"
                },
                "holidays_skipped": {
                  "items": {
                    "type": "object"
                  },
                  "type": "array"
                },
                "op": {
                  "type": "string"
                },
                "provenance": {
                  "description": "Additive evidence block (sg-provenance/1): per-fact source, retrieval time, limits; no score or verdict. Full schema in OpenAPI.",
                  "type": "object"
                },
                "result": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "start": {
                  "type": "string"
                },
                "weekend_days": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "receipt": {
              "description": "Ed25519-signed receipt; verify free at POST /v1/verify-receipt. New receipts also carry a signed `evidence` object.",
              "properties": {
                "evidence": {
                  "description": "Signed evidence (see llms.txt)",
                  "type": "object"
                }
              },
              "required": [
                "v",
                "endpoint_id",
                "ts",
                "price",
                "tx_hash",
                "request_hash",
                "response_hash",
                "log_seq",
                "sig"
              ],
              "type": "object"
            }
          },
          "required": [
            "data",
            "receipt"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}