Developers keep searching for the same set of questions about currency APIs, exchange rate APIs, and forex APIs: which ones are free, which are reliable, what Xe costs, whether Google has an API, how to build a converter in Python. We pulled the 18 most-asked from Google's People Also Ask and answered each one directly — no fluff, no affiliate padding.
Q1.Is there a free API for currency conversion?
Yes — several. The main free options in 2026:
- AllRatesToday — free API key (no card) for testing and personal projects: real-time mid-market rates for 160+ currencies, updated every 60 seconds, plus the official rates of 138 central banks and 66 tax and customs authorities. Paid plans from €4.99/month for production and commercial use.
- Frankfurter — 100% free, no API key, ECB daily reference rates for ~30 currencies, historical back to 1999.
- fawazahmed0/currency-api — free via jsDelivr CDN, 200+ currencies including crypto.
- freecurrencyapi.com — 5,000 requests/month.
For deeper coverage of the trade-offs, see our developer guide on free currency APIs.
Q2.What is a currency API?
A currency API is a REST web service that returns exchange rates between currencies, usually as JSON. A typical call:
GET https://allratestoday.com/api/v1/rates?source=USD&target=EUR
→ [{"rate": 0.85, "source": "USD", "target": "EUR", "time": "2026-04-19T12:00:00Z"}]
Currency APIs power e-commerce checkout, finance dashboards, accounting tools, travel apps, international payroll, and any software that displays money in more than one currency. Full background in What is a currency API?.
Q3.What is a forex API?
A forex (FX) API is a currency API built for trading rather than display. Expect:
- Tick-level bid/ask quotes with millisecond latency (not just a mid-market rate)
- Historical OHLC (open/high/low/close) data for charting
- Sometimes order execution endpoints — place, modify, cancel
Examples: OANDA, MetaTrader (MT4/MT5), TraderMade, Polygon.io, FXCM. General-purpose currency APIs only return reference mid-market rates and are not suitable for trading.
Q4.What is an FX API?
"FX API" is another name for "forex API." Some enterprise providers — banks, Stripe's FX product, Bloomberg, OCBC — reserve "FX API" for streaming quotes and execution services covering 100+ pairs. In casual developer conversation, "currency API" and "FX API" are often used interchangeably.
Q5.What is an open exchange rate?
Two meanings:
- Generic: an exchange rate openly accessible through a public API — no private contract needed.
- Specific: Open Exchange Rates is the name of a commercial provider publishing rates for 200+ currencies since 2011. Free tier: 1,000 requests/month, hourly updates, USD base only.
Q6.Is the Frankfurter API free?
Yes. Frankfurter is a free, open-source currency data API with no key, no signup, and no documented rate limit for normal use. It tracks ~30 currencies using European Central Bank daily reference rates and supports historical data back to 1999. Because it's ECB-based, rates update once per business day around 16:00 CET — great for accounting and display, not for trading.
Q7.Is an exchange rate API free?
Depends on the provider:
| Provider | Free tier | Key? |
|---|---|---|
| Frankfurter | Unlimited | No |
| fawazahmed0 | Unlimited | No |
| AllRatesToday | Free | Yes |
| freecurrencyapi.com | 5,000/mo | Yes |
| Open Exchange Rates | 1,000/mo | Yes |
| Fixer.io | 100/mo | Yes |
| Xe / OANDA / Bloomberg | None | Yes |
See Best free currency exchange API (2026) for a detailed comparison.
Q8.Does Xe have an API?
Yes. Xe Currency Data API provides real-time and historical exchange rates for 170+ currencies. It's used by Fortune 500 companies, banks, and fintechs, with optional SLAs and uptime guarantees. Full breakdown in Does Xe have an API?.
Q9.Is the Xe API free?
No. Xe has no public free tier. Pricing is enterprise-only and typically starts around $799/month depending on volume and features. For free access, Frankfurter or AllRatesToday's free plan are the common alternatives.
Q10.Is the Google Currency Converter API free?
There is no official public Google Currency API (the old Google Finance API was retired in 2012). What exists:
- The
GOOGLEFINANCEfunction in Google Sheets — free, ~20-minute delay, not a REST API. - Unofficial wrappers (e.g.
currency-api.appspot.com) — community-hosted, no SLA, can disappear without warning.
Don't depend on Google for production currency rates. Use a supported provider.
Q11.Is Fixer.io reliable?
Yes, within its bounds. Fixer.io is owned by apilayer and has been running since 2015. Paid plans have uptime guarantees and are generally reliable. Limitations on the free tier are heavy: 100 requests/month, HTTP only (no HTTPS), and EUR is the only allowed base currency. Most production users end up on Basic ($14.99/month) or Professional ($59.99/month).
Q12.Is the MT5 API free?
No. MetaTrader 5 Manager and Gateway APIs require a licensed MT5 server and a paid integration agreement with MetaQuotes. Brokers may offer trial access to demo accounts. If you only need exchange rates (not trade execution), a plain currency API is dramatically simpler and cheaper.
Q13.How do you make a currency converter in Python with an API?
Minimal working example using Frankfurter (no key needed):
import requests
def convert(amount, src, dst):
r = requests.get("https://api.frankfurter.dev/v1/latest",
params={"from": src, "to": dst})
r.raise_for_status()
rate = r.json()["rates"][dst]
return amount * rate, rate
amount, rate = convert(100, "USD", "EUR")
print(f"100 USD = {amount:.2f} EUR (rate {rate})")
Add error handling for timeouts and unknown currency codes, cache results for 30–60 minutes, and you have a production-ready converter. Deeper walk-through in How to get live exchange rates in Python.
Q14.What is the formula to calculate an exchange rate?
The exchange rate is the ratio of two currency amounts:
rate = target_amount / source_amount
If 100 USD buys 85 EUR, the USD→EUR rate is 85 / 100 = 0.85. To convert any amount, multiply by the rate:
250 USD × 0.85 = 212.50 EUR
The inverse (EUR→USD) is 1 / 0.85 ≈ 1.176. Real-world rates include a spread — the "buy" and "sell" rates differ slightly, and that gap is the provider's margin. More: Mid-market vs retail exchange rates.
Q15.What is the GOOGLEFINANCE function for exchange rates?
In Google Sheets:
=GOOGLEFINANCE("CURRENCY:USDEUR")
Replace USDEUR with any two concatenated ISO 4217 codes (GBPJPY, AUDCAD, etc.). For historical rates, add a date:
=GOOGLEFINANCE("CURRENCY:USDEUR", "price", DATE(2024,1,1))
Rates are delayed ~20 minutes. Fine for spreadsheets; don't build production systems on it. For Excel, see How to get exchange rates in Excel.
Q16.Which is the best currency converter API?
Depends on what the rate is for:
- Prices and conversions in an app or store: a live mid-market API such as AllRatesToday (60-second updates) or Frankfurter (daily ECB rates).
- Invoices, VAT, customs and audit: the official rate the rule names, from the central bank or tax authority that publishes it, with its publication date.
- Enterprise trading desks: Xe, OANDA or Bloomberg.
For a head-to-head comparison, see 10 best currency exchange APIs (2026).
Q17.Which exchange rate should a fintech or payments app use?
Usually three, for three different jobs:
- Reference: the mid-market rate, shown so customers can see what the market is.
- Quote and settlement: your own rate, the mid-market rate plus your stated margin, locked for the life of the quote.
- Tax and compliance: the official rate a regulation names (a central bank fixing, a tax authority table), never a live market rate.
Store the rate, its source and its timestamp with every transaction, so any figure can be traced later. More in Currency exchange rate API for fintech.
Q18.Why does a bank's exchange rate differ from the API rate?
A mid-market API returns the midpoint between buying and selling. Banks and payment providers quote retail buy and sell rates on either side of it, with a spread of roughly 0.3–5% depending on the provider and the currency. That spread is their margin, so it never matches the mid-market figure.
If your product needs the retail rates themselves, for example to show what a customer's bank will actually charge or to benchmark your own pricing, use a bank buy/sell rates feed. Background in Mid-market vs retail exchange rates.
Need a reliable currency API for your app?
AllRatesToday gives you real-time rates for 160+ currencies, with historical data on paid plans from €4.99/month. Start free, no credit card required.
Get your free API key