Skip to main content
$ € Β£ Β₯ β‚Ή β‚© β‚± β‚΄ ₦

Fast, Reliable Foreign Exchange Data API

Access real-time currency rates, historical data, and conversions with a developer-friendly JSON API.

Trusted by 1000+ developers worldwide
Terminal

{
  "base": "USD",
  "timestamp": 1632145200,
  "rates": {
    "EUR": 0.853,
    "GBP": 0.731,
    "JPY": 109.62,
    ...
  }
}

          
Updated every 60 seconds
60s
Data Updates
170+
Currencies
99.9%
Uptime
~50ms
Response Time

Powerful Features for Developers

Everything you need to integrate reliable currency exchange data into your applications

Live Exchange Rates

Get real-time currency exchange rates updated every 60 seconds for 170+ global currencies.

/v1/latest?base=USD

Historical Rates

Access historical exchange data for analysis, reporting, and tracking currency trends.

/v1/historical/2023-01-15?base=EUR

Currency Conversion

Convert amounts between currencies with precision using our simple conversion endpoint.

/v1/convert?from=USD&to=JPY&amount=100

Secure API Keys

Generate and manage API keys for each project with granular access controls and usage limits. You can authenticate via header or query parameter.

Authorization: Bearer YOUR_API_KEY
?apiKey=YOUR_API_KEY

High Precision Rates

Access currency exchange data with up to 8 decimal places for finance, trading, and tax-critical use cases. Available for both latest and conversion endpoints.

/v1/latest-precise?base=USD
/v1/convert-precise?from=USD&to=EUR&amount=100

Clean JSON Responses

Get fast, structured, and easy-to-parse data in clean JSON format for seamless integration.

{ '{"base":"USD","rates":{"EUR":0.85,"GBP":0.73}}' }

Try Our API

API Request
GET https://api.openexchangeapi.com/v1/latest?base=USD HTTP/1.1
            
200 OK
{
    "base": "USD",
    "date": "2025-05-14",
    "timestamp": 1747262715,
    "rates": {
        "EUR": 1,
        "USD": 1
    }
}
            

Compare API Plans

Feature Free Pro Enterprise
Rate Limits 100 / day / ip 10,000 / day / key Unlimited
API Key Required No Yes Yes
API Update Frequency 60 seconds 60 seconds 60 seconds
Realtime No Yes Yes
High Precision Rates Yes Yes Yes
Historical Data Yes Yes Yes
Supported Currencies All All + Custom All + Custom
Support Basic 24 hrs On-Call

Integration Made Simple

Start building with OpenExchangeAPI in minutes with our easy-to-use endpoints

Code Examples

// Get the latest exchange rates
async function getLatestRates() {
  const base = 'USD';
  const url = `https://api.openexchangeapi.com/v1/latest?base=${base}`;

  try {
    const res = await fetch(url);

    if (!res.ok) {
      throw new Error(`HTTP ${res.status}`);
    }

    const data = await res.json();

    console.log(`Base currency: ${data.base}`);
    console.log(`Date: ${data.date}`);
    console.log('Exchange rates:');

    for (const [currency, rate] of Object.entries(data.rates)) {
      console.log(`${currency}: ${rate}`);
    }
  } catch (err) {
    console.error('Error:', err.message);
  }
}

getLatestRates();

Get Started in 3 Simple Steps

1

Start Instantly

You don't need an API key to get started β€” our endpoints are publicly accessible. However, creating a free account is recommended for usage tracking and unlocking higher limits.

Create Free Account β†’
2

Choose Your Endpoint

Select from our various endpoints based on your needs: latest rates, historical data, or currency conversion.

View Documentation β†’
3

Integrate and Launch

Copy the code example in your preferred language, replace the API key, and you're ready to go!

See Integration Guides β†’

Pro Tip

Use our client libraries for even faster integration. We support JavaScript, Python, PHP, Ruby, and more.

Sample API Responses

GET /v1/latest?base=USD

{
  "timestamp": 1632145200,
  "base": "USD",
  "date": "2023-09-21",
  "rates": {
    "EUR": 0.853,
    "GBP": 0.731,
    "JPY": 109.62,
    "AUD": 1.375,
    "CAD": 1.281,
    "CHF": 0.924,
    "CNY": 6.466,
    "HKD": 7.783,
    "NZD": 1.428,
    "SEK": 8.641,
    "ZAR": 14.764,
    "INR": 73.612,
    "BRL": 5.287,
    "RUB": 73.205,
    "KRW": 1182.75,
    "SGD": 1.351,
    "MXN": 20.075
  }
}

GET /v1/convert?from=USD&to=EUR&amount=50

{
  "from": "USD",
  "to": "EUR",
  "amount": 50,
  "rate": 0.9137,
  "result": 45.685
}

Get Your Free API Key

No credit card required. 1,000 API calls / day free forever.

Frequently Asked Questions

Ready to get started?

Join thousands of developers who trust OpenExchangeAPI for reliable currency data

Start building with currency data in 30 seconds

No complicated setup. No confusing documentation. Just the exchange rate data you need, delivered through a clean, developer-friendly API.

Simple Integration

One API call to get started. Full documentation with code examples.

Transparent Pricing

Clear tiers with no hidden fees. Scale as your needs grow.

Reliable Data

Updated every 60 seconds with 99.9% uptime guarantee.

Terminal
bash

# Install with npm
$ npm install openexchangeapi

# Make your first API call
$ curl "https://api.openexchangeapi.com/v1/latest?base=USD"

{
  "base": "USD",
  "timestamp": 1678972800,
  "rates": {
    "EUR": 0.9406,
    "GBP": 0.8245,
    "JPY": 133.45,
    "CAD": 1.3728
    /* ... and more */
  }
}