Currency and crypto exchange rates in clean JSON. 166 fiat pairs, BTC/ETH/SOL, 30-day history — cached, structured, and ready for your agent's context window.
Your agent needs to know the CAD→USD rate, or how much ETH costs in EUR. FX gives you clean, structured rates from multiple sources — with caching so you don't burn requests re-fetching the same data.
All major, minor, and exotic currency pairs. Free tier covers 20 major pairs. Paid unlocks all 166 — from USD/ZAR to EUR/TRY.
BTC, ETH, and SOL quoted against USD, EUR, GBP, and CAD. Sourced from CoinGecko. Paid tier only.
Paid tier includes historical rates going back 30 days. Useful for agents doing financial analysis or trend detection.
Free tier caches for 15 minutes. Paid tier caches for 60 seconds. Same pair requested 100 times = 1 external API call.
We aggregate from multiple free sources and cache aggressively. If the primary source is down, we failover automatically. Your agent always gets a response.
Exchange Rates API. Free, no API key required. Updates hourly. Covers 161 fiat currencies + some crypto. Our workhorse source.
European Central Bank rates. Free, no key. Updates daily. Covers 30+ major fiat pairs. Used when primary is unreachable.
Bitcoin, Ethereum, and Solana rates. Free tier: 10-50 calls/min. Covers 100+ crypto assets against major fiat currencies.
Free tier covers the 20 most-requested fiat pairs. Paid unlocks everything.
0.9210.789149.501.3641.5280.8780.857162.3189.47.2483.124.9718.6232.4135.1867,4203,580142.3062,1002,825Get all rates for a base currency. Free tier returns 20 pairs. Paid returns all 166+.
curl "https://fx.4bots.ai/v1/free/forex/ratesUSD"
Example response:
{
"base": "USD",
"rates": {
"EUR": 0.921,
"GBP": 0.789,
"JPY": 149.50,
"CAD": 1.364,
"AUD": 1.528,
"CHF": 0.878,
...
},
"source": "open.er-api.com",
"cached_at": "2026-06-17T14:15:00Z",
"cache_ttl_seconds": 900,
"free_remaining": 43
}
Convert a specific amount between two currencies.
curl "https://fx.4bots.ai/v1/free/forex/rates?from=USD&to=CAD&amount=100"
Get crypto rates. Paid tier only.
curl "https://fx.4bots.ai/v1/free/forex/rates?coins=btc,eth,sol&vs=usd,eur"
Health check. Always free, always returns 200.
curl "https://fx.4bots.ai/health"
50 free requests per day covers most agent workloads. Paid tier unlocks all pairs, crypto, and historical data.
No signup. No API key. Just send a request.
How x402 works