# Spain BOE Official Gazette Search

> Spain BOE Official Gazette Search 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).

Search the Spanish Official State Gazette (BOE) by keyword, date, and section, returning matching publication titles, IDs, and PDF links

## Facts

- Endpoint: GET https://es.redtapeapi.com/v1/es/boe/search?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-boe-official-gazette-search-3994e98b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h_uatf5stWvUW3-y4GySA

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-boe-official-gazette-search-3994e98b
```

Example prompt: Search today's Spanish Official Gazette (BOE) for publications about 'contrato laboral' in sections 1 and 2B, return up to 50 results with their PDF links.

## When to prefer this

Use this endpoint when you need to search Spain's official legislative and administrative publications (BOE) by keyword, date, or section — particularly for monitoring new laws, royal decrees, ministerial orders, or official announcements without needing an API key or account. Prefer this over general web search when you need structured, authoritative data with direct PDF links from the official gazette.

## Known failure modes

- No results returned when query terms do not match any BOE entry for the given date (count=0)
- Date falls on a Sunday when no BOE is issued, returning empty results
- Invalid section code provided causing no matching items
- Keywords entered in a language other than Spanish may yield fewer or no matches
- Future or very old dates may return empty datasets
- Result count capped at 500; queries needing more require multiple paginated calls

## 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 with the queried date, a count of matching items, and an array of BOE entries each containing the official document ID (e.g. BOE-A-2026-21872), the publication title, the BOE section code, the issuing department name, and a direct PDF URL on boe.es.

## 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": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Keywords (Spanish works best, accent-insensitive, all terms must match)"
      },
      "date": {
       "type": "string",
       "description": "YYYYMMDD or YYYY-MM-DD. Defaults to today. No issue on Sundays."
      },
      "limit": {
       "type": "integer",
       "description": "Max items (1-500, default 100)"
      },
      "sections": {
       "type": "string",
       "description": "Comma-separated BOE section codes: 1,2B,3,4,5A,5B,5C"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "20261021",
  "count": 1,
  "items": [
   {
    "id": "BOE-A-2026-21872",
    "pdf": "https://www.boe.es/boe/dias/2026/10/21/pdfs/BOE-A-2026-21872.pdf",
    "title": "Real Decreto-ley ...",
    "section": "1",
    "department": "JEFATURA DEL ESTADO"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spain-boe-official-gazette-search-3994e98b/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)
