B

Brazil Data API · Cambio

by Brazil Data API

GETBaseSolana

$0.002

per call · USD Coin on Base

Official USD/BRL and EUR/BRL exchange rates (PTAX, Central Bank of Brazil).

Endpoint

GET https://brasil-dados-api.onrender.com/cambio

6

Calls / 30d

4

Unique payers / 30d

Aug 26

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://brasil-dados-api.onrender.com/cambio", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://brasil-dados-api.onrender.com/cambio" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "eur_brl": 5.94,
  "source": "Banco Central do Brasil (PTAX)",
  "usd_brl": 5.19
}

Payment details

Pay to0x649006bc937e7a60f98e49455d0fe3425321a3b0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from Brazil Data API & similar services