Exchangr - Forex Rates API

GetExchangr is a JSON-based REST API that provides dependable and precise currency exchange rates for 172 global currencies. It offers affordability without compromising on the quality of data, making it an ideal choice for businesses and developers seeking reliable currency conversion solutions.

About the API:

GetExchangr is a comprehensive JSON-based REST API that offers a reliable and accurate solution for obtaining currency exchange rates for 172 global currencies. With its user-friendly interface and robust functionality, GetExchangr is the go-to choice for businesses, developers, and financial institutions seeking seamless integration of currency conversion capabilities into their applications and systems.

One of the standout features of GetExchangr is its unwavering commitment to data accuracy. The API leverages trusted and up-to-date sources to provide the most precise and reliable exchange rates available. This ensures that businesses and developers can confidently rely on GetExchangr to accurately convert currency values, eliminating the risk of errors or miscalculations that could have significant financial implications.

Affordability is another key aspect of GetExchangr. The API offers its exceptional currency exchange rate data at a cost-effective price point, making it accessible to businesses of all sizes and budgets. GetExchangr understands the importance of delivering value to its users, and its competitive pricing structure reflects this commitment.

Integration with GetExchangr is seamless and hassle-free. The API follows the REST architectural style, utilizing JSON as its data format. This allows for straightforward integration into a wide range of applications and programming languages. Whether you are building a mobile app, e-commerce platform, financial management system, or any other application that requires currency exchange functionality, GetExchangr provides the necessary tools and resources to ensure a smooth integration process.

GetExchangr supports a comprehensive range of 172 world currencies, including major currencies such as USD, EUR, GBP, JPY, and CAD, as well as lesser-known or exotic currencies. This broad coverage ensures that businesses operating on a global scale can confidently cater to their diverse customer base, regardless of their location or currency preference.

The API also offers flexibility in terms of data retrieval. Users can access real-time exchange rates, historical exchange rate data, or even perform currency conversions based on specific dates or timeframes. This level of flexibility empowers businesses to analyze currency trends, perform financial calculations, and generate accurate reports.

In summary, GetExchangr is a JSON-based REST API that provides businesses, developers, and financial institutions with reliable, accurate, and affordable currency exchange rate data for 172 global currencies. With its commitment to data accuracy, competitive pricing, seamless integration, and comprehensive currency coverage, GetExchangr is the ideal solution for those seeking a dependable currency conversion API to enhance their applications and systems.

 

What this API receives and what your API provides (input/output)?

Depending on which API endpoint you use for your query, the Exchange API will return or calculate with the most representative forex market rate available, which is generally the "midpoint" value. The "mid" value will also be the most useful tool to your company's financial department for accounting & invoicing purposes, for financial estimates or planning, for calculator & converter applications, and for any other applications you power with Exchangr forex data. All exchange rates are returned as currency pairs.

 

What are the most common uses cases of this API?

 

  1. E-commerce Platforms: E-commerce platforms can integrate GetExchangr API to provide real-time currency conversion for international customers. By dynamically displaying prices in the local currency of each customer, it enhances the shopping experience and eliminates any confusion or conversion errors during the checkout process.

  2. Travel and Hospitality Applications: Travel and hospitality applications can utilize GetExchangr API to assist travelers in converting currency while planning trips or making bookings. By offering up-to-date exchange rates, users can easily calculate costs, make informed decisions, and ensure accurate budgeting for accommodations, transportation, and other expenses in foreign currencies.

  3. Financial Management Systems: Financial management systems can benefit from GetExchangr API by incorporating automatic currency conversion features. Businesses operating globally can accurately track and manage finances across multiple currencies, enabling seamless reporting, budgeting, and analysis. This simplifies financial processes and ensures accurate representation of financial data.

  4. Forex Trading Platforms: Forex trading platforms can leverage the accurate exchange rate data provided by GetExchangr API. Traders can access real-time rates, historical data, and perform currency conversions for informed decision-making. The API enables precise calculations and analysis, supporting traders in executing profitable forex trades.

  5. Accounting Software: Accounting software can integrate GetExchangr API to simplify multi-currency accounting processes. It allows businesses to automatically convert foreign transactions into their base currency, ensuring accurate financial statements and facilitating compliance with international accounting standards. This streamlines bookkeeping, reduces manual effort, and enhances financial accuracy.

  6. Personal Finance Applications: Personal finance applications can incorporate GetExchangr API to provide users with real-time currency conversion capabilities. It allows individuals to track and manage their expenses, savings, and investments across different currencies. Users can make informed financial decisions, calculate exchange rates, and monitor their financial health accurately.

By integrating the GetExchangr API into these diverse use cases, businesses and developers can enhance their applications with reliable and accurate currency exchange functionality, improving user experiences, financial accuracy, and overall efficiency.

 

Which type of historical rates does the API offer?

The Exchangr API delivers EOD / End of Day historical exchange rates, which become available at 00:05 am GMT for the previous day and are time stamped at one second before midnight.

 

How often are exchange rates refreshed? 

Spot exchange rate data is collected within the 60-second market window. Depending on your Subscription Plan, quotes are refreshed every 60 minutes (Free Plan), 10 minutes (Growth Plan), or 60 seconds (Pro Plan). 

 

Which currencies are available? 

We offer 164 Currencies + 8 Cryptocurrencies. Our API is integrated with a number of highly reputable foreign exchange rate sources, offering the most recent and accurate rates for 516 currency pairs.

 

Bank-Level Security

Your connection to the Exchangr API is encrypted using bank-grade 256-bit SSL Encryption.

 

 The API comes with multiple endpoints, each serving a different use case. Endpoint functionalities include getting the currencies rates data for all or a specific set of currencies, converting amounts from one currency to another, retrieving Time-Series data for one or multiple currencies and querying the API for daily fluctuation data.

  •  Latest rates endpoint: Returns real-time currencies rates data for all available or a specific set of currencies.
  • Convert endpoint: This allows for the conversion of any amount from one currency to another.
  • Historical rates endpoint: Returns historical currency rates data for all available or a specific set of currencies. Historical rates are available for most currencies since August 2021.
  • Time-Series data endpoint: Returns daily historical currency rates data between two specified dates for all available or a specific set of currencies.
  • Fluctuation data endpoint: Returns fluctuation data between two specified dates for all available or a specific set of currencies.

 

SSL Connection

All paid subscription plans available on Exchangr API come with 256-bit SSL encryption. To connect to the API via SSL, simply use the https protocol instead of standard http.

JSONP Callbacks

The Exchangr API comes with support for JSONP Callbacks. This feature enables you to specify a function name, pass it into the API's callback GET parameter, and cause the API to return your requested API response wrapped inside that function.

 

Access-Control / CORS

Exchangr API also supports Cross-Origin Resource Sharing (CORS) and Access-Control Headers. This will enable you to use the Exchangr API via Cross-Origin HTTP Requests.

 

HTTP ETags

HTTP ETags are a way of reducing the load on your back-end by requesting new Exchangr API data only if rates have changed since the last API response.

 

Are there any limitations with your plans?

Besides API call limitations per month: 

  • Basic Plan 10 minutes updates. 
  • Pro Plan 60 seconds updates. 

API Documentation

Endpoints


Use this endpoint to retrieve all the available symbols that we support for your queries. 



                                                                            
GET https://zylalabs.com/api/9/exchangr+-+forex+rates+api/37/supported+symbols
                                                                            
                                                                        

Supported Symbols - Endpoint Features

Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":false,"error":{"code":101,"type":"invalid_access_key","info":"No API Key was specified or an invalid API Key was specified."}}}
                                                                                                                                                                                                                    
                                                                                                    

Supported Symbols - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9/exchangr+-+forex+rates+api/37/supported+symbols' --header 'Authorization: Bearer YOUR_API_KEY' 

    

This endpoint is perfect for you to know the latest known price of every currency you want to query. 

Depending on your subscription plan, the latest endpoint will return real-time exchange rate data updated every 10 minutes (free plans) or every 60 seconds (paid plans).

 

The "base" parameter is the one that all the other currencies will be compared. So, in this query:

http://zylalabs.com/api/9/exchangr/41/latest+rates?base=USD&symbols=BRL,EUR,GBP,INR,JPY

You will be getting the currency price compared to USD. 

Let's take a look to the

Endpoint JSON response example: 

{
  "data": {
    "success": true,
    "timestamp": 1656012000,
    "date": "2022-06-23",
    "base": "usd",
    "rates": {
      "BRL": 5.2389077773,
      "EUR": 0.949702,
      "GBP": 0.81543,
      "INR": 78.21475290618,
      "JPY": 135.0492269763,
      "USD": 1
    }
  }
}

By default the "base" parameter is USD, but you can change it. 

Also, if you do not declare any "symbols" parameter, this endpoint will bring all the rates for all the supported currencies. 



                                                                            
GET https://zylalabs.com/api/9/exchangr+-+forex+rates+api/41/latest+rates
                                                                            
                                                                        

Latest Rates - Endpoint Features

Object Description
base [Required] Enter the three-letter currency code of your preferred base currency
symbols [Required] Enter a list of comma-separated currency codes to limit output codes. Check "Supported Symbols" endpoint to check.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"timestamp":1654783080,"date":"2022-06-09","base":"USD","rates":{"EUR":0.93501,"USD":1}}}
                                                                                                                                                                                                                    
                                                                                                    

Latest Rates - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9/exchangr+-+forex+rates+api/41/latest+rates?base=USD&symbols=GBP,EUR,INR,JPY' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Do you want to check the rates for a specific symbol on a specific date?

With this endpoint, you will be able to get historical rates for most symbols all the way back to 2022. You will be able to retrieve historical rates just by appending a date (format YYYY-MM-DD).

 

Let's see an example. 

I want to check the rates of the British Pound, Euro, and Rupees compared to US dollar. 

My query would be:

 

 

 



                                                                            
GET https://zylalabs.com/api/9/exchangr+-+forex+rates+api/42/historical+rates
                                                                            
                                                                        

Historical Rates - Endpoint Features

Object Description
base [Required] Enter the three-letter currency code of your preferred base currency. Check "Supported Symbols" endpoint.
symbols [Required] Enter the tree-letter currency code of your preference.
date [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"historical":true,"date":"2022-06-01","base":"USD","rates":{"EUR":0.93875,"USD":1}}}
                                                                                                                                                                                                                    
                                                                                                    

Historical Rates - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9/exchangr+-+forex+rates+api/42/historical+rates?base=USD&symbols=BRL,EUR,GBP,INR,JPY&date=Required' --header 'Authorization: Bearer YOUR_API_KEY' 

    

With this endpoint, you will be able to retrieve daily historical rates between two dates of your choice. 

This endpoint has a limitation of 365 days between start and end date, and only one symbol can be retrieved per request. 

 For example, you want to get the intraday price of INR compared to USD between May 20th and May 30th. 

With this simple query you can check it:

 
{
  "data": {
    "success": true,
    "timeseries": true,
    "start_date": "2022-05-20",
    "end_date": "2022-05-30",
    "base": "USD",
    "rates": {
      "2022-05-20": {
        "INR": 77.441479551,
        "USD": 1
      },
      "2022-05-21": {
        "INR": 77.818604,
        "USD": 1
      },
      "2022-05-22": {
        "INR": 77.818604,
        "USD": 1
      },
      "2022-05-23": {
        "INR": 77.860672071,
        "USD": 1
      },
      "2022-05-24": {
        "INR": 77.56814033703,
        "USD": 1
      },
      "2022-05-25": {
        "INR": 77.5371592875,
        "USD": 1
      },
      "2022-05-26": {
        "INR": 77.531648922,
        "USD": 1
      },
      "2022-05-27": {
        "INR": 77.6777045135,
        "USD": 1
      },
      "2022-05-28": {
        "INR": 77.692204,
        "USD": 1
      },
      "2022-05-29": {
        "INR": 77.692204,
        "USD": 1
      },
      "2022-05-30": {
        "INR": 77.72643459,
        "USD": 1
      }
    }
  }
}
 
Remember that the access key must be set as Header.
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


                                                                            
GET https://zylalabs.com/api/9/exchangr+-+forex+rates+api/44/time-series
                                                                            
                                                                        

Time-Series - Endpoint Features

Object Description
start_date [Required] The start date of your preferred timeframe. Ex: 2022-05-20
end_date [Required] The end date of your preferred timeframe. Ex: 2022-05-30
base [Required] Enter the three-letter currency code of your preferred base currency. Check "Supported Symbols" endpoint.
symbols [Required] Enter the three-letter currency code of your preferred currency symbol. JUST ONE SYMBOL PER QUERY IS SUPPORTED. Check "Supported Symbols" endpoint.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"data":{"success":true,"timeseries":true,"start_date":"2022-05-01","end_date":"2022-06-01","base":"USD","rates":{"2022-05-01":{"EUR":0.94835,"USD":1},"2022-05-02":{"EUR":0.94886,"USD":1},"2022-05-03":{"EUR":0.95162,"USD":1},"2022-05-04":{"EUR":0.95005,"USD":1},"2022-05-05":{"EUR":0.941498,"USD":1},"2022-05-06":{"EUR":0.94864,"USD":1},"2022-05-07":{"EUR":0.94804,"USD":1},"2022-05-08":{"EUR":0.94804,"USD":1},"2022-05-09":{"EUR":0.94945,"USD":1},"2022-05-10":{"EUR":0.94646,"USD":1},"2022-05-11":{"EUR":0.94969,"USD":1},"2022-05-12":{"EUR":0.95128,"USD":1},"2022-05-13":{"EUR":0.96351,"USD":1},"2022-05-14":{"EUR":0.96055,"USD":1},"2022-05-15":{"EUR":0.96055,"USD":1},"2022-05-16":{"EUR":0.961255,"USD":1},"2022-05-17":{"EUR":0.95799,"USD":1},"2022-05-18":{"EUR":0.94799,"USD":1},"2022-05-19":{"EUR":0.95501,"USD":1},"2022-05-20":{"EUR":0.94522,"USD":1},"2022-05-21":{"EUR":0.94675,"USD":1},"2022-05-22":{"EUR":0.94675,"USD":1},"2022-05-23":{"EUR":0.945985,"USD":1},"2022-05-24":{"EUR":0.93612,"USD":1},"2022-05-25":{"EUR":0.93155,"USD":1},"2022-05-26":{"EUR":0.93581},"2022-05-27":{"EUR":0.931698,"USD":1},"2022-05-28":{"EUR":0.931505,"USD":1},"2022-05-29":{"EUR":0.931505,"USD":1},"2022-05-30":{"EUR":0.93208,"USD":1},"2022-05-31":{"EUR":0.92818,"USD":1},"2022-06-01":{"EUR":0.93129,"USD":1}}}}
                                                                                                                                                                                                                    
                                                                                                    

Time-Series - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9/exchangr+-+forex+rates+api/44/time-series?start_date=2023-05-10&end_date=2023-05-17&base=USD&symbols=INR' --header 'Authorization: Bearer YOUR_API_KEY' 

    

Allows you to query the API to get the open, high, low, and close price.
This endpoint has a limitation of one symbol per request.



                                                                            
GET https://zylalabs.com/api/9/exchangr+-+forex+rates+api/46/ohlc+price
                                                                            
                                                                        

OHLC Price - Endpoint Features

Object Description
base [Required] Enter the three-letter currency code of your preferred base currency
symbols [Required] Enter the three-letter currency code of your preferred base currency
DATE [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"success":true,"timestamp":1654783604,"date":"2022-06-01","base":"EUR","symbol":"USD","rates":{"open":1.0737793812883205,"high":1.0737793812883205,"low":1.063354671317071,"close":1.0652463382157125}}
                                                                                                                                                                                                                    
                                                                                                    

OHLC Price - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/9/exchangr+-+forex+rates+api/46/ohlc+price?base=USD&symbols=INR&DATE=Required' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Exchangr - Forex Rates API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
244ms

Category:


Related APIs