B

Brazil Macro API · CDI

by Brazil Macro API

GETBase

$0.005

per call · USD Coin on Base

CDI interbank rate, daily and annualized.

Endpoint

GET https://api-macro-br-production.up.railway.app/v1/cdi

1

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api-macro-br-production.up.railway.app/v1/cdi", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://api-macro-br-production.up.railway.app/v1/cdi" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "indicator": "cdi",
  "reference_date": "2026-08-28",
  "retrieved_at": "2026-09-01T12:00:00Z",
  "source": "BCB/SGS 12; BCB/SGS 4389",
  "units": {
    "annualized": "% p.a.",
    "daily": "% per business day"
  },
  "values": {
    "annualized": 13.9,
    "daily": 0.05166
  }
}

Payment details

Pay to0x61195a8af1f72350d85790f6edfd5d11d1fa02db
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from Brazil Macro API & similar services