# BR Data API – SELIC & CDI Rates

> BR Data API – SELIC & CDI Rates 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 current Brazilian SELIC target rate and annualized CDI rate as published by Banco Central do Brasil (BCB).

## Facts

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

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-selic-cdi-rates-f1170cb1
```

Example prompt: What are the current SELIC target rate and CDI rate in Brazil right now, including the date they were last updated?

## When to prefer this

Choose this endpoint when you need clean, normalized, ready-to-use SELIC and CDI rate data from Banco Central do Brasil without requiring an API key or signup. Ideal for AI agents that need Brazilian interest rate data on demand with micro-payment pricing via x402/USDC. Prefer over scraping BCB directly or maintaining your own rate polling infrastructure.

## Known failure modes

- 402 Payment Required if USDC payment via x402 is missing or insufficient
- 503 or upstream error if BCB data source is temporarily unavailable
- Stale as_of dates if BCB has not published updated rates (e.g. weekends or holidays)
- Network timeout from the Cloudflare Workers endpoint

## 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 containing two sub-objects: 'selic_target' with the current SELIC rate (% a.a.), its as_of date, and unit; and 'cdi_annualized' with the current annualized CDI rate (% a.a.), its as_of date, and unit. Data is clean and normalized from BCB sources.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "selic_target": {
   "unit": "% a.a.",
   "as_of": "2026-10-07",
   "value": 13.75
  },
  "cdi_annualized": {
   "unit": "% a.a.",
   "as_of": "2026-10-06",
   "value": 13.65
  }
 }
}
```

## More

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