Public and bank holidays for 100+ countries, and the business-day answer behind them
Public and bank holidays for 100+ countries, and the business-day answer behind them. Returns holidays[] with localName, name, global and types; pass ?date= and it also answers isBusinessDay with nextBusinessDay and previousBusinessDay, walking weekends and year boundaries. Requires ?country=<ISO 3166-1 alpha-2, e.g. US>; optional ?date=YYYY-MM-DD or ?year=1975..2100. Errors: 400 bad_country (a 3-letter code like USA is rejected)|bad_date|bad_year, 404 unknown_country.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-30
updated
Provider
x402.donnyautomation.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2740651e046c59aB2A6510401140643292d3a96F",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"country": "US",
"date": "2026-07-04"
},
"type": "http"
},
"output": {
"example": {
"attribution": "Holiday data from Nager.Date (public domain).",
"businessDay": {
"date": "2026-07-04",
"isBusinessDay": false,
"nextBusinessDay": "2026-07-06",
"previousBusinessDay": "2026-07-02",
"reason": "weekend",
"weekday": "Saturday"
},
"count": 1,
"country": "US",
"holidays": [
{
"date": "2026-07-03",
"global": true,
"localName": "Independence Day",
"name": "Independence Day",
"types": [
"Public"
]
}
],
"ts": "2026-08-03T00:00:00.000Z",
"year": 2026
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"country": {
"description": "ISO 3166-1 alpha-2 country code, e.g. US, GB, DE, JP.",
"type": "string"
},
"date": {
"description": "YYYY-MM-DD. Adds the isBusinessDay answer plus next and previous business days.",
"type": "string"
},
"year": {
"description": "Calendar year 1975..2100 (default: current year). Ignored when date is given.",
"type": "string"
}
},
"required": [
"country"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://x402.donnyautomation.com/holidays" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.donnyautomation.com/holidays");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.donnyautomation.com/holidays")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4940.json, and this resource appears in /discovery/resources and /discovery/search.