Exchange Rates API

API ID 1390

The Exchange Rates API provides real-time exchange rate data for the world's currencies. With a simple REST API, it updates every few minutes and is easy to use for currency conversion purposes.

100% uptime 743 ms avg response

API Documentation

Endpoints

Request

Get the latest foreign exchange reference rates.The latest endpoint will return exchange rate data updates every 1 minute.

Endpoint ID: 1157
GET https://zylalabs.com/api/1390/exchange+rates+api/1157/latest
INPUT PARAMETERS

Latest — Endpoint Features

Object Description
base Required the code you want to use as a base currency.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

base
API EXAMPLE RESPONSE
JSON
{"code":"0","msg":"success","base":"USD","rates":{"USD":1,"AED":3.673,"ALL":100.2,"AMD":385.21,"ANG":1.8001,"AOA":828.5,"ARS":349.58,"AUD":1.5664,"AZN":1.7,"BAM":1.8255,"BBD":2,"BDT":109.75,"BGN":1.8266,"BHD":0.3765,"BIF":2831.31,"BMD":1,"BND":1.3641,"BOB":6.9253,"BRL":4.986,"BSD":1,"BWP":13.672,"BYN":2.521,"BZD":2,"CAD":1.366,"CHF":0.8927,"CLP":892.86,"CNY":7.2423,"COP":4018.67,"CRC":535.12,"CUP":24,"CVE":102.92,"CZK":22.801,"DJF":177.83,"DKK":6.9703,"DOP":56.797,"DZD":137.04,"EGP":30.863,"ETB":55.212,"EUR":0.9335,"FJD":2.2744,"GBP":0.8022,"GEL":2.62,"GHS":11.411,"GMD":60.55,"GNF":8600,"GTQ":7.8602,"HKD":7.8397,"HNL":24.604,"HRK":7.0421,"HTG":134.98,"HUF":360.85,"IDR":15382,"ILS":3.8455,"INR":83.12,"IQD":1308.07,"IRR":42265,"ISK":133.62,"JMD":154.29,"JOD":0.7082,"JPY":147.82,"KES":144.55,"KGS":88.378,"KHR":4150,"KRW":1336.31,"KWD":0.3085,"KYD":0.8333,"KZT":463.87,"LAK":19807,"LBP":15012,"LKR":322.37,"LSL":19.088,"LYD":4.849,"MAD":10.187,"MDL":17.948,"MKD":57.507,"MMK":2097.45,"MOP":8.0653,"MUR":45.247,"MWK":1092.96,"MXN":17.597,"MYR":4.6765,"NAD":19.115,"NGN":788.92,"NIO":36.58,"NOK":10.681,"NPR":132.63,"NZD":1.6984,"OMR":0.3846,"PAB":1,"PEN":3.7083,"PHP":56.67,"PKR":306.07,"PLN":4.3156,"PYG":7254.42,"QAR":3.642,"RON":4.638,"RSD":109.53,"RUB":97.75,"RWF":1202.78,"SAR":3.7508,"SCR":13.209,"SDG":601,"SEK":11.127,"SGD":1.3646,"SOS":569.28,"SYP":12877,"SZL":19.081,"THB":35.427,"TMT":3.51,"TND":3.1275,"TRY":26.845,"TTD":6.7718,"TWD":32.09,"TZS":2501.99,"UAH":36.886,"UGX":3734.54,"UYU":38.037,"UZS":12132,"VES":33.34,"VND":24059,"XAF":612.3,"XCD":2.7,"XOF":612.3,"XPF":111.39,"YER":250.4,"ZAR":19.124,"ZMW":20.75},"time_update":{"time_unix":1694370300,"time_utc":"2023-09-10T11:25:00Z","time_zone":"America\/Los_Angeles"}}
Latest — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/1390/exchange+rates+api/1157/latest?base=USD' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

The endpoint is useful for applications where you just want to convert between two specific currencies.

Endpoint ID: 1158
GET https://zylalabs.com/api/1390/exchange+rates+api/1158/currency+converter
INPUT PARAMETERS

Currency Converter — Endpoint Features

Object Description
base Required The three-letter currency code of the currency you would like to convert from.
target Required The three-letter currency code of the currency you would like to convert to.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

base
target
API EXAMPLE RESPONSE
JSON
{"code":"0","msg":"success","convert_result":{"base":"USD","target":"GBP","rate":0.8127},"time_update":{"time_unix":1676054280,"time_utc":"2023-02-10T10:38:00Z","time_zone":"America\/Los_Angeles"}}
Currency Converter — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/1390/exchange+rates+api/1158/currency+converter?base=USD&target=GBP' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

This endpoint lists the currencies that we support.

Endpoint ID: 1159
GET https://zylalabs.com/api/1390/exchange+rates+api/1159/supported+codes
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{"code":"0","msg":"success","supported_codes":[{"code":"USD","name":"US Dollar"},{"code":"ARS","name":"Argentine Peso"},{"code":"BBD","name":"Barbados Dollar"},{"code":"BSD","name":"Bahamian Dollar"},{"code":"PYG","name":"Paraguay Guarani"},{"code":"PAB","name":"Panamanian Balboa"},{"code":"BRL","name":"Brazilian Real"},{"code":"BMD","name":"Bermudian Dollar"},{"code":"BOB","name":"Bolivian Boliviano"},{"code":"BZD","name":"Belize Dollar"},{"code":"XCD","name":"East Caribbean Dollar"},{"code":"DOP","name":"Dominican Peso"},{"code":"COP","name":"Colombian Peso"},{"code":"CRC","name":"Costa Rican Colon"},{"code":"CUP","name":"Cuban Peso"},{"code":"HTG","name":"Haitian Gourde"},{"code":"ANG","name":"Netherlands Antillian Guilder"},{"code":"HNL","name":"Honduran Lempira"},{"code":"CAD","name":"Canadian Dollar"},{"code":"KYD","name":"Cayman Islands Dollar"},{"code":"PEN","name":"Peruvian Sol"},{"code":"MXN","name":"Mexican Peso"},{"code":"NIO","name":"Nicaraguan Cordoba Oro"},{"code":"TTD","name":"Trinidad and Tobago Dollar"},{"code":"GTQ","name":"Guatemalan Quetzal"},{"code":"VES","name":"Venezuelan Bolivar"},{"code":"UYU","name":"Uruguay Peso"},{"code":"JMD","name":"Jamaican Dollar"},{"code":"CLP","name":"Chilean Peso"},{"code":"AUD","name":"Australian Dollar"},{"code":"MOP","name":"Macau Pataca"},{"code":"PKR","name":"Pakistan Rupee"},{"code":"PHP","name":"Philippine Peso"},{"code":"FJD","name":"Fiji Dollar"},{"code":"HKD","name":"Hong Kong Dollar"},{"code":"KRW","name":"Korean Won"},{"code":"KHR","name":"Cambodian Riel"},{"code":"LAK","name":"Lao Kip"},{"code":"MYR","name":"Malaysian Ringgit"},{"code":"BDT","name":"Bangladeshi Taka"},{"code":"MMK","name":"Myanmar Kyat"},{"code":"NPR","name":"Nepalese Rupee"},{"code":"CNY","name":"Chinese Yuan Renminbi"},{"code":"JPY","name":"Japanese Yen"},{"code":"SCR","name":"Seychelles Rupee"},{"code":"LKR","name":"Sri Lanka Rupee"},{"code":"XPF","name":"CFP Franc"},{"code":"THB","name":"Thai Baht"},{"code":"BND","name":"Brunei Dollar"},{"code":"SGD","name":"Singapore Dollar"},{"code":"TWD","name":"Taiwan Dollar"},{"code":"NZD","name":"New Zealand Dollar"},{"code":"INR","name":"Indian Rupee"},{"code":"IDR","name":"Indonesian Rupiah"},{"code":"VND","name":"Vietnamese Dong"},{"code":"ALL","name":"Albanian Lek"},{"code":"BYN","name":"Belarusian Ruble"},{"code":"BGN","name":"Bulgarian Lev"},{"code":"ISK","name":"Iceland Krona"},{"code":"PLN","name":"Polish Zloty"},{"code":"DKK","name":"Danish Krone"},{"code":"RUB","name":"Russian Ruble"},{"code":"CZK","name":"Czech Koruna"},{"code":"HRK","name":"Croatian Kuna"},{"code":"RON","name":"Romanian Leu"},{"code":"MKD","name":"Macedonia Denar"},{"code":"MDL","name":"Moldovan Leu"},{"code":"NOK","name":"Norwegian Krone"},{"code":"EUR","name":"Euro"},{"code":"SEK","name":"Swedish Krona"},{"code":"CHF","name":"Swiss Franc"},{"code":"RSD","name":"Serbian Dinar"},{"code":"UAH","name":"Ukraine Hryvnia"},{"code":"HUF","name":"Hungarian Forint"},{"code":"GBP","name":"British Pound"},{"code":"AED","name":"United Arab Emirates Dirham"},{"code":"OMR","name":"Omani Rial"},{"code":"AZN","name":"Azerbaijani Manat"},{"code":"BHD","name":"Bahraini Dinar"},{"code":"GEL","name":"Georgian Lari"},{"code":"KZT","name":"Kazakhstan Tenge"},{"code":"KGS","name":"Kyrgyzstani Som"},{"code":"QAR","name":"Qatari Rial"},{"code":"KWD","name":"Kuwaiti Dinar"},{"code":"LBP","name":"Lebanese Pound"},{"code":"SAR","name":"Saudi Riyal"},{"code":"TRY","name":"Turkish Lira"},{"code":"TMT","name":"Turkmenistan Manat"},{"code":"UZS","name":"Uzbekistan Som"},{"code":"AMD","name":"Armenian Dram"},{"code":"YER","name":"Yemeni Rial"},{"code":"IQD","name":"Iraqi Dinar"},{"code":"IRR","name":"Iranian Rial"},{"code":"ILS","name":"Israeli New Shekel"},{"code":"JOD","name":"Jordanian Dinar"},{"code":"DZD","name":"Algerian Dinar"},{"code":"EGP","name":"Egyptian Pound"},{"code":"ETB","name":"Ethiopian Birr"},{"code":"AOA","name":"Angolan Kwanza"},{"code":"BWP","name":"Botswana Pula"},{"code":"BIF","name":"Burundi Franc"},{"code":"XOF","name":"CFA BCEAO Franc"},{"code":"CVE","name":"Cape Verde Escudo"},{"code":"GMD","name":"Gambian Dalasi"},{"code":"DJF","name":"Djibouti Franc"},{"code":"GNF","name":"Guinea Franc"},{"code":"GHS","name":"Ghanaian Cedi"},{"code":"KES","name":"Kenyan Shilling"},{"code":"LSL","name":"Lesotho Loti"},{"code":"LYD","name":"Libyan Dinar"},{"code":"RWF","name":"Rwanda Franc"},{"code":"MWK","name":"Malawi Kwacha"},{"code":"MUR","name":"Mauritius Rupee"},{"code":"MAD","name":"Moroccan Dirham"},{"code":"NAD","name":"Namibian Dollar"},{"code":"ZAR","name":"South African Rand"},{"code":"NGN","name":"Nigerian Naira"},{"code":"SZL","name":"Swaziland Lilangeni"},{"code":"SDG","name":"Sudanese Pound"},{"code":"SOS","name":"Somali Shilling"},{"code":"TZS","name":"Tanzanian Shilling"},{"code":"TND","name":"Tunisian Dinar"},{"code":"UGX","name":"Uganda Shilling"},{"code":"ZMW","name":"Zambian Kwacha"},{"code":"XAF","name":"CFA BEAC Franc"},{"code":"BAM","name":"Bosnia and Herzegovina Marka"},{"code":"SYP","name":"Syrian Pound"}]}
Supported Codes — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/1390/exchange+rates+api/1159/supported+codes' --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 Exchange Rates 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 commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan
Custom Volume

  • Custom Rate Limit
  • Team & Access Management
  • SLA-backed Uptime
  • Specialized Customer Support
  • Real-Time API Monitoring
  • Enterprise Security & Compliance
Minimum annual contract: USD 10,000

Trusted by leading companies

Overview

About the API: 

The Exchange Rates API provides accurate and up-to-date exchange rate information for a wide range of currencies. Its simple REST API makes it easy to integrate into any application, providing real-time exchange rate data that is updated every few minutes. The API covers most of the world's currencies, giving you access to the information you need to make informed financial decisions. Whether you're a business looking to manage foreign currency transactions or an individual looking to compare exchange rates, the Exchange Rates API provides the data you need in a format that's easy to use. With its straightforward API, you can easily convert one currency to another, making it ideal for a variety of use cases, from e-commerce to personal finance.

 

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

Call the API to receive the latest exchange rates. 

 

What are the most common uses cases of this API?

  1. E-commerce: The Exchange Rates API can be integrated into e-commerce websites to automatically convert prices into the local currency of the user, providing a more seamless shopping experience.

  2. Financial Management: The API can be used by businesses to monitor exchange rates and make informed decisions about international transactions, reducing the risk of financial loss due to currency fluctuations.

  3. Travel Planning: The Exchange Rates API can be integrated into travel websites and apps to provide up-to-date currency conversion information, making it easier for travelers to budget for their trips.

  4. Personal Finance: The API can be used by individuals to compare exchange rates and make informed decisions about international money transfers, investments, and other financial transactions.

  5. Data Analysis: The Exchange Rates API can be used to gather data on exchange rates over time, providing valuable insights into current trends and fluctuations. This data can be used by economists, researchers, and businesses to make informed decisions about the global economy.



Are there any limitations to your plans?

Besides the number of API calls, there is no other limitation. 

Exchange Rates API FAQs

The "GET Latest" endpoint returns the latest foreign exchange rates for multiple currencies, while the "GET Currency Converter" endpoint provides the conversion rate between two specific currencies. The "GET Supported Codes" endpoint lists all supported currency codes and their names.

Key fields include "base" (the reference currency), "rates" (exchange rates for various currencies), "target" (the currency being converted to), and "rate" (the conversion rate). Each response also includes a status code and message.

The response data is structured in JSON format. For example, the "GET Latest" response includes a "base" field, a "rates" object with currency codes as keys, and their corresponding exchange rates as values.

The "GET Currency Converter" endpoint accepts parameters for "base" (the currency to convert from) and "target" (the currency to convert to). The "GET Latest" endpoint does not require parameters but returns rates based on the default base currency.

The "GET Latest" endpoint provides real-time exchange rates for multiple currencies, the "GET Currency Converter" offers specific conversion rates, and the "GET Supported Codes" lists all currencies supported by the API.

The Exchange Rates API sources its data from reliable financial institutions and continuously updates exchange rates to ensure accuracy. Regular quality checks are performed to validate the data against market standards.

Common use cases include e-commerce price conversions, financial management for international transactions, travel budgeting, personal finance comparisons, and data analysis for economic trends.

Users can integrate the API responses into applications for real-time currency conversion, display exchange rates on websites, or analyze historical trends by storing and processing the data returned from the API.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

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, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

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 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

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 free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
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]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs


You might also like