# BR Data API – IPCA Rate

> BR Data API – IPCA Rate 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).

Returns the latest monthly IPCA (Brazilian consumer price index) value and 12-month accumulated inflation rate from Banco Central do Brasil data.

## Facts

- Endpoint: GET https://brasil-data-x402.wagner-proc.workers.dev/v1/rates/ipca?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-ipca-rate-c059fc0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZUEKfbpBVUDHQE2kMXztf

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-ipca-rate-c059fc0c
```

Example prompt: What is Brazil's current IPCA inflation rate and the 12-month accumulated figure? Fetch the latest available data.

## When to prefer this

Choose this endpoint when you need clean, normalized IPCA inflation data for Brazil without building your own BCB scraper, require no signup or API key (pay-per-call via x402 USDC), and need the data programmatically in a structured JSON format suitable for agent workflows, financial calculations, or automated reports.

## Known failure modes

- 402 Payment Required – USDC micropayment via x402 not completed or insufficient funds
- 429 Too Many Requests – rate limit exceeded
- Invalid months parameter – value outside 1–60 integer range returns a validation error
- Service unavailable – upstream BCB/IBGE data source temporarily unreachable
- No data available – reference period not yet published by the statistical authority

## 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

A JSON object with two top-level fields: `latest_month` (the most recent monthly IPCA value in percent and its reference period in YYYY-MM format) and `accumulated_12m` (the 12-month accumulated IPCA rate and its reference period). Example: latest_month -0.32% for 2026-08, accumulated_12m 4.22% for 2026-08.

## 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": {
      "months": {
       "type": "integer",
       "maximum": 60,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "latest_month": {
   "value": -0.32,
   "reference": "2026-08"
  },
  "accumulated_12m": {
   "value": 4.22,
   "reference": "2026-08"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/br-data-api-ipca-rate-c059fc0c/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)
