# LatAm Datos API – Business Day Check (dia-habil)

> LatAm Datos API – Business Day Check (dia-habil) is a paid API for AI agents from latam-datos-api.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Checks whether a given date is a business day (dia habil) in a specified Latin American country, returning the holiday name if applicable

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/datos/dia-habil
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latam-datos-api-business-day-check-dia-habil-e5979045
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s0TuimuEUAO9OSUTzDPMN

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 latam-datos-api-business-day-check-dia-habil-e5979045
```

Example prompt: Is July 20, 2025 a business day in Colombia? Check if it's a public holiday and tell me the reason if it isn't.

## When to prefer this

Choose this endpoint when you need a reliable, per-country business-day and public-holiday check for one or more of the five supported Latin American countries (Colombia, Mexico, Argentina, Chile, Peru). It is ideal for financial automation (payment scheduling, invoice due dates, settlement windows), HR workflows, and cross-border operations where knowing the exact local holiday calendar matters. It pays per-query via USDC on Base (x402), so it is cost-effective for low-volume or on-demand lookups without requiring a subscription.

## Known failure modes

- Missing 'fecha' parameter causes a 400 validation error
- Unsupported country code (not CO/MX/AR/CL/PE) may return an error or null result
- Dates far in the future or past may not have holiday data available
- Payment failure via x402 (insufficient USDC balance) results in a 402 response and no data returned
- Malformed date format (not YYYY-MM-DD) triggers a validation error

## How this service works

Datos de mercados emergentes para agentes: FX LatAm, inflacion, tasas de bancos centrales, feriados, validacion de IDs fiscales/bancarios, IVA y salarios minimos. Pago por consulta via x402 v2 (USDC en Base).

## Output

Returns a JSON object with a boolean field 'dia_habil' indicating whether the queried date is a business day in the specified country, and a 'motivo' field providing the name of the holiday if the date is not a business day (e.g. {"motivo":"Independencia","dia_habil":false}).

## 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": [
      "fecha"
     ],
     "properties": {
      "pais": {
       "type": "string",
       "description": "CO MX AR CL PE"
      },
      "fecha": {
       "type": "string",
       "description": "fecha YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "motivo": "Independencia",
  "dia_habil": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-business-day-check-dia-habil-e5979045/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latam-datos-api.onrender.com](https://www.zero.xyz/host/latam-datos-api.onrender.com/llms.txt)
