# Public Holidays Lookup API

> Public Holidays Lookup API is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the list of public holidays for a given country and year, including holiday names, dates, and types

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/public-holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-lookup-api-f9ca71ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YME6zDml66QPCFxZmKQ7X

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 public-holidays-lookup-api-f9ca71ab
```

Example prompt: Can you get me the full list of public holidays in the US for 2026, including their names and dates?

## When to prefer this

Choose this endpoint when you need a quick, no-account, pay-per-call lookup of public holidays by country and year, especially in agentic workflows where you want to avoid API key management and pay fractions of a cent per call via USDC on Base.

## Known failure modes

- Invalid or unsupported country code returns an error or empty holidays array
- Payment failure via x402 protocol results in 402 status without data
- Unsupported year outside the available data range may return empty results
- Network timeout to the duckdns host due to infrastructure reliability of a personal/hobbyist server

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

A JSON object containing the year, country code, total number of holidays, and an array of holiday objects each with date (ISO 8601), name, localName, and types (e.g. Public, Bank).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "total": 11,
  "country": "US",
  "holidays": [
   {
    "date": "2026-01-01",
    "name": "New Year's Day",
    "types": [
     "Public",
     "Bank"
    ],
    "localName": "New Year's Day"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-lookup-api-f9ca71ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
