GetExchangr

GetExchangr

A JSON-based REST API, delivering reliable and accurate currency exchange rates for 172 world currencies at an affordable price.

API description

About the API:

Exchangr provides a JSON-based REST API, delivering reliable and accurate currency exchange rates for 172 world currencies at an affordable price, which makes it the perfect instrument for startups and online businesses, as well as for larger companies in need of reliable financial data via an easy to use API. The Exchangr API is widely used to power financial departments, mobile applications, and back-office systems around the world. 

 

Exchange rate data delivered by the Exchangr API is collected from over 15 reliable data sources, every minute. Sources include banks and financial data providers.

 

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

Depending on which API endpoint you use for your query, the Exchangr 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?

 

This API is ideal for any business or developer that wants to retrieve reliable rates for all our listed currencies. You will be able to make conversions between currencies in real-time and check historical rates. 

This is perfect for business that operates with multiple currencies and wants to display all these rates with a confident source. 

 

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: 

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

Documentation

Endpoints


Supported Symbols

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



                                                        
GET http://zylalabs.com/api/9/getexchangr/37/supported+symbols
                                                        
                                                    
Supported Symbols - Endpoint Features
Object Description

Latest Rates

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 http://zylalabs.com/api/9/getexchangr/41/latest+rates
                                                        
                                                    
Latest Rates - Endpoint Features
Object Description
base [Optional] Enter the three-letter currency code of your preferred base currency
symbols [Optional] Enter a list of comma-separated currency codes to limit output codes. Check "Supported Symbols" endpoint to check.

Historical Rates

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 http://zylalabs.com/api/9/getexchangr/42/historical+rates
                                                        
                                                    
Historical Rates - Endpoint Features
Object Description
base [Optional] Enter the three-letter currency code of your preferred base currency. Check "Supported Symbols" endpoint.
symbols [Optional] Enter the tree-letter currency code of your preference.
date [Required]

Time-Series

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 http://zylalabs.com/api/9/getexchangr/44/time-series
                                                        
                                                    
Time-Series - Endpoint Features
Object Description
start_date [Optional] The start date of your preferred timeframe. Ex: 2022-05-20
end_date [Optional] The end date of your preferred timeframe. Ex: 2022-05-30
base [Optional] Enter the three-letter currency code of your preferred base currency. Check "Supported Symbols" endpoint.
symbols [Optional] Enter the three-letter currency code of your preferred currency symbol. JUST ONE SYMBOL PER QUERY IS SUPPORTED. Check "Supported Symbols" endpoint.

Fluctuation

Using the fluctuation API endpoint, you will be able to retrieve information about how prices fluctuate from day to day.
This endpoint has a limitation of 365 days and only one symbol per request.



                                                        
GET http://zylalabs.com/api/9/getexchangr/45/fluctuation
                                                        
                                                    
Fluctuation - Endpoint Features
Object Description
start_date [Optional] The start date of your preferred timeframe.
end_date [Optional] The end date of your preferred timeframe.
base [Optional] Enter the three-letter currency code of your preferred base currency
symbols [Optional] Enter the three-letter currency code of your preferred base currency

Open/High/Low/Close (OHLC) Price

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 http://zylalabs.com/api/9/getexchangr/46/open-high-low-close+%28ohlc%29+price
                                                        
                                                    
Open/High/Low/Close (OHLC) Price - Endpoint Features
Object Description
base [Optional] Enter the three-letter currency code of your preferred base currency
symbols [Optional] Enter the three-letter currency code of your preferred base currency

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 GetExchangr 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.

🧙Free
$0.00 / Mo

  • 100 Requests / Month
💫Basic
$24.99 / Mo

  • 10,000 Requests / Month
⚡Pro
$49.99 / Mo

  • 100,000 Requests / Month
🔥ProPlus
$99.99 / Mo

  • 500,000 Requests / Month
🚀 Enterprise
Custom quote

Need more? We offer unlimited API calls, Request Quote


Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. 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 with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

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.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

API Provider: MV

migue

Useful links:


Category:


Tags: