# BR Data API – Brazilian Business Days Calculator

> BR Data API – Brazilian Business Days Calculator is a paid API for AI agents from brasil-data-x402.wagner-proc.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Counts business days between two dates or adds/subtracts business days from a given date, respecting Brazilian national holidays.

## Facts

- Endpoint: GET https://brasil-data-x402.wagner-proc.workers.dev/v1/business-days?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/br-data-api-brazilian-business-days-calculator-3a54fe0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BDost9jcOyvYg4mEAi-us

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 br-data-api-brazilian-business-days-calculator-3a54fe0d
```

Example prompt: How many business days are there between March 1 and March 31, 2025 in Brazil, accounting for national holidays?

## When to prefer this

Choose this endpoint when you need business day calculations specifically for Brazil, including correct handling of Brazilian national and regional holidays. Prefer it over generic date-math libraries when compliance with the official Brazilian holiday calendar is required, or when building fintech, legal, HR, or logistics workflows that must respect Brazilian working day rules. No API key or signup required — pay-per-call via x402/USDC.

## Known failure modes

- Missing or malformed date parameters return an error
- Invalid date formats (non-ISO) may cause parsing errors
- Dates outside supported range may return an empty or error response
- Payment failure (HTTP 402) if USDC payment is not completed
- Network timeout on Cloudflare Workers edge node

## How this service works

Clean, normalized Brazilian public data (CNPJ, CEP, BCB rates, PTAX, holidays/business days, banks/ISPB) for AI agents. Paid endpoints use x402 (HTTP 402, USDC) — no signup or API key. Not affiliated with Receita Federal, Banco Central or Correios.

## Output

Returns a JSON object with a 'mode' field (e.g. 'count' or 'add') and either a 'business_days' integer count (when counting between two dates) or a resulting date (when adding/subtracting days), all computed against the official Brazilian holiday calendar.

## 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",
     "properties": {
      "to": {
       "type": "string"
      },
      "add": {
       "type": "integer"
      },
      "date": {
       "type": "string"
      },
      "from": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "count",
  "business_days": 20
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/br-data-api-brazilian-business-days-calculator-3a54fe0d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brasil-data-x402.wagner-proc.workers.dev](https://www.zero.xyz/host/brasil-data-x402.wagner-proc.workers.dev/llms.txt)
