# Worldwide Holidays Lookup API

> Worldwide Holidays Lookup API is a paid API for AI agents from x402-ja-api.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns public holidays and observances for a given country and year, with optional subdivision filtering

## Facts

- Endpoint: GET https://x402-ja-api.onrender.com/v1/holidays
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worldwide-holidays-lookup-api-8bc4cb5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p8sdBxjtXl9XHEoxfowCg

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 worldwide-holidays-lookup-api-8bc4cb5e
```

Example prompt: What are all the public holidays in Germany, specifically in Bavaria (BY), for the year 2026?

## When to prefer this

Choose this endpoint when you need structured, machine-readable holiday data for 200+ countries with optional subdivision granularity, holiday type filtering, and pay-per-call USDC pricing via x402 (no API key required). Prefer it over calendar libraries when you need authoritative, up-to-date data at runtime without bundling a local dataset.

## Known failure modes

- Invalid or unsupported country code returns an error
- Year outside 1900-2100 range is rejected by schema validation
- Unknown region/subdivision code may return empty or error
- Payment failure (x402) if USDC balance is insufficient
- Network timeout if the Render.com service is cold-starting

## How this service works

Calendar and Japan data APIs for AI agents: worldwide holidays and business days (200+ countries), plus Japanese text-to-structure (address, name, bank, company normalization). Pay per call in USDC via x402, no API key.

## Output

Returns a JSON object with the year, country code, optional region, total holiday count, data source attribution, and an array of holiday objects each containing the date (YYYY-MM-DD), English name, local-language name, holiday type (public/bank/school/optional/observance), and a substitute-day flag.

## 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": "integer",
       "maximum": 2100,
       "minimum": 1900
      },
      "types": {
       "type": "string",
       "description": "Comma-separated filter: public,bank,school,optional,observance (default: all)"
      },
      "region": {
       "type": "string",
       "maxLength": 10,
       "description": "Optional subdivision (US-CA → CA, DE-BY → BY). GET /v1/holidays/countries?country=US lists them"
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$",
       "description": "ISO 3166-1 alpha-2 country code (US, DE, GB, SG ...). GET /v1/holidays/countries lists all 200+"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "count": 14,
  "region": "BY",
  "source": "date-holidays (CC-BY-3.0)",
  "country": "DE",
  "holidays": [
   {
    "date": "2026-01-01",
    "name": "New Year's Day",
    "type": "public",
    "localName": "Neujahr",
    "substitute": false
   },
   {
    "date": "2026-01-06",
    "name": "Epiphany",
    "type": "public",
    "localName": "Heilige Drei Könige",
    "substitute": false
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worldwide-holidays-lookup-api-8bc4cb5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ja-api.onrender.com](https://www.zero.xyz/host/x402-ja-api.onrender.com/llms.txt)
