# Agent Tools – National Public Holidays Lookup

> Agent Tools – National Public Holidays Lookup is a paid API for AI agents from agent-tools.jbarkules.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns a list of national public holidays for a given country and year using ISO 3166 alpha-2 country codes.

## Facts

- Endpoint: GET https://agent-tools.jbarkules.workers.dev/v1/time/holidays?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-national-public-holidays-lookup-dd696d4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qmaCl89Tc7Jugf9gvQYOw

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 agent-tools-national-public-holidays-lookup-dd696d4a
```

Example prompt: Can you pull up all the national public holidays in Germany for 2026?

## When to prefer this

Choose this endpoint when you need a quick, structured list of national public holidays for a specific country and year, especially within automated scheduling, payroll, or business-day calculation workflows. It complements the sibling business-day-counting endpoint. Prefer it over scraping government sites or general web search when you need clean, machine-readable date data.

## Known failure modes

- Invalid or unsupported ISO 3166 alpha-2 country code returns an error or empty results
- Year parameter missing or malformed causes a 400-level error
- Country with no data in the system may return an empty holidays array
- Network or Cloudflare Workers timeout for transient failures

## How this service works

List national public holidays for a country and year.

## Output

A JSON object containing the queried country (ISO alpha-2 code), the year, and an array of holiday objects each with a date (YYYY-MM-DD format) and the official holiday name.

## 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",
     "required": [
      "country",
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "Year, e.g. 2027"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166 alpha-2"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2027,
  "country": "US",
  "holidays": [
   {
    "date": "2027-01-01",
    "name": "New Year's Day",
    "global": true,
    "local_name": "New Year's Day"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-national-public-holidays-lookup-dd696d4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools.jbarkules.workers.dev](https://www.zero.xyz/host/agent-tools.jbarkules.workers.dev/llms.txt)
