# Toolrail Public Holidays

> Toolrail Public Holidays is a paid API for AI agents from toolrail.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Returns official public holidays for a given country and year (1975–2075), including date, local name, English name, and nationwide vs. regional flag.

## Facts

- Endpoint: GET https://toolrail.dev/days/holidays?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolrail-public-holidays-aa64bac3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mf-MrzNVvaG5enb-kt8xJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability toolrail-public-holidays-aa64bac3
```

Example prompt: Can you list all official public holidays in Chile for 2025, including whether each one is nationwide or just regional?

## When to prefer this

Use this endpoint when you need structured, machine-readable public holiday data for a specific country and year, especially for Latin American countries where Chile has enhanced statutory accuracy. Prefer it over generic calendar APIs when you need the nationwide-vs-regional distinction or need coverage across historical and future years within the 1975–2075 window.

## Known failure modes

- Unsupported country code returns an error or empty result
- Year outside the 1975–2075 range may return an error
- Missing required query parameters (country, year) causes a 400-level error
- Regional holiday data may be incomplete for countries other than Chile

## How this service works

Official public holidays for supported countries (any year 1975-2075): date, local and English name, nationwide vs regional flag. Chile enhanced with a curated statutory table. Use when checking whether a date is a public holiday in a country or listing a year's holidays.

## Output

Returns a JSON object containing the country code, year, total number of holidays, and an array of holiday objects — each with the ISO date string, the holiday's local-language name, its English name, and a boolean indicating whether it is a nationwide holiday or regional.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "year": {
       "type": "string"
      },
      "country": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "year": {
       "type": "integer"
      },
      "total": {
       "type": "integer"
      },
      "country": {
       "type": "string"
      },
      "holidays": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "nationwide": {
          "type": "boolean"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolrail-public-holidays-aa64bac3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolrail.dev](https://www.zero.xyz/host/toolrail.dev/llms.txt)
