Economia.Awesome API

Beginner's Pick Currency Exchange / No Auth Required Beginner HTTPS
Free to Use
84 A
Measured Score 0 50 100 Speed 28/30 Consistency 13/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

Overview

Economia.Awesome is a free Brazilian API that provides real-time and historical currency exchange rates for dozens of currency pairs, including BRL (Brazilian Real) against USD, EUR, BTC, and more. It requires no authentication and imposes no rate limits, making it ideal for high-frequency or hobby projects. The API returns structured JSON with bid, ask, and timestamp fields for each currency pair.

Beginner Tip

No API key needed — just call the endpoint directly. The base URL is `https://economia.awesomeapi.com.br/last/USD-BRL` to get USD to BRL. Swap the currency codes for other pairs (e.g., `EUR-USD`). The response uses `bid` for the current sell price and `ask` for buy price.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://economia.awesomeapi.com.br/last/USD-BRL,EUR-BRL
Result
HTTP 200 · application/json · 482 bytes · compressed
Response time
37 ms (median of 3) · fastest 31 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
USDBRL object {11 fields}
EURBRL object {11 fields}

Captured Response

Captured from a real request to https://economia.awesomeapi.com.br/last/USD-BRL,EUR-BRL on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "USDBRL": {
    "code": "USD",
    "codein": "BRL",
    "name": "Dólar Americano/Real Brasileiro",
    "high": "5.1178",
    "low": "5.07845",
    "varBid": "0.029",
    "pctChange": "0.570775",
    "bid": "5.1098",
    "ask": "5.1115",
    "timestamp": "1786389812",
    "create_date": "2026-08-10 16:23:32"
  },
  "EURBRL": {
    "code": "EUR",
    "codein": "BRL",
    "name": "Euro/Real Brasileiro",
    "high": "5.90737",
    "low": "5.86682",
    "varBid": "0.02631",
    "pctChange": "0.448134",
    "bid": "5.89727",
    "ask": "5.90005",
    "timestamp": "1786389915",
    "create_date": "2026-08-10 16:25:15"
  }
}

Field Reference

bid The current buy price for the currency pair (how much BRL to buy 1 USD).
ask The current sell price for the currency pair.
high The highest rate recorded in the last 24 hours.
low The lowest rate recorded in the last 24 hours.
timestamp Unix timestamp (seconds) of the last rate update.
create_date Human-readable datetime string of when the rate was recorded.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://economia.awesomeapi.com.br/last/USD-BRL,EUR-BRL";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "status": 404,
  "message": "Nenhuma rota encontrada",
  "code": "NotFound"
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

404 Not Found Using an unsupported or misspelled currency pair code (e.g., `USD-XYZ`).
Check the list of supported pairs at `https://economia.awesomeapi.com.br/xml/available` and use exact codes.
Empty or unexpected JSON structure Calling the docs URL (docs.awesomeapi.com.br) instead of the actual API endpoint.
Use `https://economia.awesomeapi.com.br/last/USD-BRL` as the real endpoint, not the docs page.
CORS error in browser Some environments block cross-origin requests even to no-auth APIs.
The API supports CORS for most endpoints. If blocked, proxy the request through your server or use a CORS proxy in development.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 28/30
Consistency 13/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 37ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →