# Spanish Business-Day Calculator (Días Hábiles)

> Spanish Business-Day Calculator (Días Hábiles) is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Counts working days between two dates or adds N business days to a start date, using Spain's national public holiday calendar.

## Facts

- Endpoint: POST https://api.vextorium.com/dias-habiles-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spanish-business-day-calculator-d-as-h-biles-a7559e82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TDeblY_JmYSk0JDkR9lQq

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 spanish-business-day-calculator-d-as-h-biles-a7559e82 -d '<json body>'
```

Example prompt: How many business days are there between March 1, 2025 and April 30, 2025 in Spain, taking into account Spanish national public holidays?

## When to prefer this

Choose this endpoint when you need business-day calculations specifically governed by Spain's national public holiday calendar — for example, computing payment deadlines, legal notice periods, or project milestones under Spanish commercial law. Prefer it over generic date-diff utilities when Spanish holiday exclusion is required and over region-specific tools when national-level holidays suffice.

## Known failure modes

- Missing required 'desde' field returns a validation error
- Providing both 'hasta' and 'sumar_dias' simultaneously may cause ambiguous or erroneous results
- Invalid date format (non-YYYY-MM-DD) causes a parse error
- End date earlier than start date may return zero or negative business day count
- Requesting very large date ranges may produce unexpected results or timeouts
- Regional Spanish holidays (autonomous community level) are not included, only national ones

## How this service works

Spanish business-day calculator: count business days between dates or add N business days, using Spain's national public holidays.

## Output

Returns a JSON object with: the computed number of business days (dias_habiles), the start date (desde), the resolved end date (hasta), and an array of Spanish national public holidays that fall within the date range (festivos_en_el_rango), each with its date and name. May also include a note (nota) for edge cases.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "desde"
     ],
     "properties": {
      "desde": {
       "type": "string",
       "description": "Start date YYYY-MM-DD"
      },
      "hasta": {
       "type": "string",
       "description": "End date YYYY-MM-DD (to count days)"
      },
      "sumar_dias": {
       "type": "integer",
       "description": "Business days to add (instead of 'hasta')"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "desde": {
       "type": [
        "string",
        "null"
       ]
      },
      "hasta": {
       "type": [
        "string",
        "null"
       ]
      },
      "dias_habiles": {
       "type": [
        "number",
        "null"
       ]
      },
      "festivos_en_el_rango": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": [
         "object",
         "null"
        ],
        "properties": {
         "fecha": {
          "type": [
           "string",
           "null"
          ]
         },
         "nombre": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spanish-business-day-calculator-d-as-h-biles-a7559e82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
