Date Math
Date Math: List public holidays (bank holidays, national holidays) for a country and year: 207 countries, 2000–2050. Use for holiday calendars, office closures and checking if a date is a holiday. Lunar or government-proclaimed dates are rule-based estimates.
Answeringour last check, 2026-11-26
7 of 7checks answered this week
1292 msmedian answer time
$0.001listed price per call
$0.001price it asked us
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
POST https://date-math.datemath.workers.dev/v1/holidays
| Category | Everything else |
|---|---|
| Provider host | date-math.datemath.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 15 from 8 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.001 | 1373 ms |
| 2026-11-25 | valid payment request | 402 | $0.001 | 1312 ms |
| 2026-11-24 | valid payment request | 402 | $0.001 | 1286 ms |
| 2026-11-23 | valid payment request | 402 | $0.001 | 1292 ms |
| 2026-11-22 | valid payment request | 402 | $0.001 | 1266 ms |
| 2026-11-21 | valid payment request | 402 | $0.001 | 1692 ms |
| 2026-11-20 | valid payment request | 402 | $0.001 | 1252 ms |
| 2026-11-19 | valid payment request | 402 | $0.001 | 1260 ms |
| 2026-11-18 | valid payment request | 402 | $0.001 | 1654 ms |
| 2026-11-17 | valid payment request | 402 | $0.001 | 1409 ms |
| 2026-11-16 | valid payment request | 402 | $0.001 | 1753 ms |
| 2026-11-15 | valid payment request | 402 | $0.001 | 1288 ms |
| 2026-11-14 | valid payment request | 402 | $0.001 | 1398 ms |
| 2026-11-13 | valid payment request | 402 | $0.001 | 1389 ms |
| 2026-11-12 | valid payment request | 402 | $0.001 | 1792 ms |
| 2026-11-11 | valid payment request | 402 | $0.001 | 1465 ms |
| 2026-11-10 | valid payment request | 402 | $0.001 | 1383 ms |
| 2026-11-09 | valid payment request | 402 | $0.001 | 30 ms |
| 2026-11-08 | valid payment request | 402 | $0.001 | 1281 ms |
| 2026-11-07 | valid payment request | 402 | $0.001 | 29 ms |
Example input (from the provider)
{
"body": {
"country": "PH",
"year": 2026
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"country": {
"description": "ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000\u20132050) are excluded from business days",
"example": "US",
"pattern": "^[A-Za-z]{2}$",
"type": "string"
},
"year": {
"description": "Defaults to the current year",
"maximum": 2050,
"minimum": 2000,
"type": "integer"
}
},
"required": [
"country"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"count": {
"type": "integer"
},
"country": {
"type": "string"
},
"country_name": {
"type": "string"
},
"holidays": {
"items": {
"properties": {
"date": {
"type": "string"
},
"name": {
"type": "string"
},
"substitute": {
"description": "Observed on another day because the holiday falls on a weekend",
"type": "boolean"
}
},
"required": [
"date",
"name"
],
"type": "object"
},
"type": "array"
},
"source": {
"description": "Data attribution",
"type": "string"
},
"type": {
"enum": [
"public"
],
"type": "string"
},
"year": {
"type": "integer"
}
},
"required": [
"country",
"year",
"count",
"holidays"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}