# Spain Public Holidays Lookup

> Spain Public Holidays Lookup is a paid API for AI agents from es.redtapeapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-18).

Returns official Spanish public holidays for a given year, optionally filtered by autonomous community (region).

## Facts

- Endpoint: GET https://es.redtapeapi.com/v1/es/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spain-public-holidays-lookup-80d72601
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mu0FCBU78k0HU1no_u5mW

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 spain-public-holidays-lookup-80d72601
```

Example prompt: What are the official public holidays in Spain for 2027, specifically for the Madrid region (ES-MD)?

## When to prefer this

Use this endpoint when you need an authoritative, up-to-date list of Spanish national or regional public holidays for a specific year — especially for scheduling, payroll, compliance, or travel planning workflows that must respect official Spanish labor calendar rules. It covers all 19 autonomous communities and cities via ISO 3166-2 codes. Prefer this over generic calendar APIs when Spain-specific official data and regional granularity are required. No account setup needed; pay-per-call via USDC x402.

## Known failure modes

- Missing required 'year' parameter returns a 400 or validation error
- Invalid or unrecognized region code may return an empty list or error
- Payment not sent or insufficient USDC balance results in HTTP 402 payment required
- Year outside supported range may return an empty holidays array or error
- Network/service unavailability returns a 5xx error

## How this service works

Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.

## Output

A JSON object containing the requested year, the optional region code, and an array of holiday objects each with a date (ISO 8601), an English name, and a localName in Spanish.

## 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": [
      "year"
     ],
     "properties": {
      "year": {
       "type": "integer",
       "description": "Year, e.g. 2027"
      },
      "region": {
       "type": "string",
       "description": "Optional ISO 3166-2 region code: ES-AN,ES-AR,ES-AS,ES-CB,ES-CE,ES-CL,ES-CM,ES-CN,ES-CT,ES-EX,ES-GA,ES-IB,ES-MC,ES-MD,ES-ML,ES-NC,ES-PV,ES-RI,ES-VC"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2027,
  "region": "ES-MD",
  "holidays": [
   {
    "date": "2027-01-01",
    "name": "New Year's Day",
    "localName": "Año Nuevo"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spain-public-holidays-lookup-80d72601/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from es.redtapeapi.com](https://www.zero.xyz/host/es.redtapeapi.com/llms.txt)
