Currency Exchange API

Currency Exchange API for Developers

Access real‑time currency exchange rates and historical data in JSON or XML. Low‑latency responses, reliable sources, and clean documentation.

Currency Exchange API Hero Image

What is our Currency Exchange API?

Our Currency Exchange API provides programmatic access to live and historical exchange rates across world currencies, including cryptocurrencies and precious metals.

Use our Foreign Exchange Rate API to power pricing, invoicing, dashboards, financial tools, and more with consistent, up‑to‑date rates returned in simple JSON or XML.

We even offer a free exchange rate API with 500 requests per month.

Live Rates

Fetch current exchange rates for 152+ currencies via the /api/v1/rates endpoint.

Convert Amounts

Convert between currencies with one request using the /api/v1/convert endpoint.

Historical Data

Query exchange rates by day or range with /api/v1/history and /api/v1/timeframe.

{
    "valid": true,
    "updated": 1756749004,
    "base": "USD",
    "rates": {
        "AED": 3.6724997,
        "AFN": 69.4676486,
        "ALL": 83.55401,
        "AMD": 382.61,
        "ANG": 1.78902046,
        "AOA": 917,
        "ARS": 1376.49413,
        "AUD": 1.526182,
        "AWG": 1.80244451,
        "AZN": 1.7,
        // ... loads more
    }
}

How Do I Get Started?

Getting started with our Currency Exchange API is easy. Follow these steps to get started.

  • Sign Up and get your API key.
  • Integrate our API into your application.
  • Make requests and return currency data in JSON or XML.
How to get started with the Currency Exchange API
50+ Million Monthly Requests

We are already serving millions of requests per month.

10,000+ Customers

Trusted by thousands of developers and businesses worldwide.

~50ms Avg. Response Time

Providing swift data retrieval for seamless user experiences.

330 Edge Locations

Leveraging a global network to ensure optimal performance and reliability.

Fetch Historical Exchange Rates

Loading chart data...

Use our Currency Exchange API to fetch historical exchange rates for a specific currency and date range.

We supply historical exchange rates back to year 2000. View our supported currency list.

Our service provides an API to get currency exchange rates on fiat, cryptocurrencies and precious metals.

Currency Exchange API Code Examples

Copy‑paste code examples to get started quickly — Python, Node.js, PHP, Go, Java, Ruby, and cURL.

import requests

url = "https://currencyapi.net/api/v1/rates"
params = {
    "key": "YOUR_API_KEY",
    "base": "USD",
    "output": "JSON"
}

response = requests.get(url, params=params)
data = response.json()

print(data)

Hear from Our Customers

Our Currency Exchange API is trusted by over 10,000 developers and businesses worldwide. See what they have to say about our API.

Oliver Lynch
5 out of 5 stars

Your Currency Conversion API has seamlessly integrated into our systems, providing real-time data that enhances our financial operations. Exceptional reliability and support!

Oliver Lynch

CTO at MachineCo

Afaan Ashiq
5 out of 5 stars

Integrating your Currency API was a breeze. The documentation is thorough, and the support team is always ready to help. Highly recommend to our development team!

Afaan Ashiq

Tech Lead at Nate

Peter Dudbridge
5 out of 5 stars

The real-time currency data has been invaluable for our financial applications. The Currency API is lightning fast, reliable, and easy to use. We're thrilled with the results!

Peter Dudbridge

Head of Engineering at Jua.ai

Currency Exchange API — FAQs

Common questions about using our currency exchange rate API.

What is a currency exchange rate API?

A currency exchange rate API provides programmatic access to real‑time and historical exchange rates across world currencies. Our API returns JSON or XML and includes endpoints for live rates, conversion, and historical data.

Is there a free currency exchange rate API?

Yes. Our Free plan includes 500 requests/month and hourly updates. It is suitable for personal or small projects. For commercial usage and faster updates, please see our paid plans. Learn more at the Free Exchange Rate API page.

Do you include cryptocurrencies and precious metals?

Yes. Alongside fiat currencies, we include major cryptocurrencies and popular metals. You can view the full supported list, including crypto codes, on the Currency List page.

How live is the currency data?

Our currency exchange rate API provides near real‑time updates. Depending on your plan, rates refresh as fast as 1 minute (Professional), 10 minutes (StartUp), or hourly (Essential & Free). For most use cases, this latency is sufficient for accurate conversions and pricing.

Does the Free plan include the historical rates endpoint?

No. Historical exchange rates are available on paid plans. The Free plan is ideal for light usage with live rates, while paid tiers unlock advanced endpoints like historical, timeframe, and conversions with higher limits.

How accurate are currency exchange API rates?

Rates are aggregated from reputable financial sources and central banks. Our infrastructure includes automated validation and fallback providers. Update frequency depends on plan: Professional (1 min), StartUp (10 min), Essential & Free (60 min).

How easy is it to implement the API in my app?

Very easy. We provide SDKs for Python, Node.js, PHP, and Go, plus copy‑paste curl examples. We also offer AI‑friendly documentation for LLMs so you can generate requests and code with your preferred assistant.

Do you have an example application using your currency exchange rate API?

Yes. Our interactive Currency Converter demonstrates live rates, conversions, and formatting. It is powered by the same endpoints you will use in production.