# Brazil Macro API – Selic Target Rate

> Brazil Macro API – Selic Target Rate is a paid API for AI agents from api-macro-br-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current Selic target interest rate as set by the Brazilian central bank (Banco Central do Brasil).

## Facts

- Endpoint: GET https://api-macro-br-production.up.railway.app/v1/selic
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brazil-macro-api-selic-target-rate-a1e1d45e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sgdZyzPdl_qalKDeGNj1k

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 brazil-macro-api-selic-target-rate-a1e1d45e
```

Example prompt: What is Brazil's current Selic target rate as set by the central bank?

## When to prefer this

Choose this endpoint when you need the official Brazilian central bank policy rate (Selic target) in a lightweight, single-field lookup. Prefer it over scraping BCB's website or using broader economic data aggregators when you want a programmatic, low-cost, near-real-time answer. If you also need related Brazilian macro indicators (CDI, IPCA, PTAX, Focus forecasts), the sibling 'all-in-one' endpoint on the same host may be more efficient.

## Known failure modes

- Service temporarily unavailable due to Railway hosting downtime
- Stale data if BCB source has not been recently updated after a COPOM meeting
- Rate not yet updated following a very recent COPOM rate decision
- HTTP 402 Payment Required if the x402 payment header is missing or insufficient

## How this service works

Current Selic target rate set by the Brazilian central bank.

## Output

Returns the current Selic target rate (percentage value) as officially set by the Banco Central do Brasil, along with relevant metadata such as the effective date of the current rate decision.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brazil-macro-api-selic-target-rate-a1e1d45e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-macro-br-production.up.railway.app](https://www.zero.xyz/host/api-macro-br-production.up.railway.app/llms.txt)
