Exchange Rates API
Exchange Rates API, by APILayer, delivers reliable real-time and historical foreign exchange data for 170+ currencies and precious metals. It offers endpoints for live rates, historical rates, currency conversion, daily timeseries, and fluctuation analysis, sourced from many commercial sources and banks. It's used by financial, e-commerce, accounting, and analytics apps needing accurate JSON currency data.

Power end-to-end data operations for your Exchange Rates API API with Nexla. Our bi-directional Exchange Rates API connector is purpose-built for Exchange Rates API, making it simple to ingest data, sync it across systems, and deliver it anywhere — all with no coding required. Nexla turns API-sourced data into ready-to-use, reusable data products and makes it easy to send data to Exchange Rates API or any other destination. With comprehensive monitoring, lineage tracking, and access controls, Nexla keeps your Exchange Rates API workflows fast, secure, and fully governed.
Features
Type: API
- Seamless API Integration: Connect to any endpoint as source or destination without coding, with automatic data product creation
- Visual Composition & Chaining: Build complex integrations using visual templates, chain API calls, and compose workflows with data validation and filtering
- API Proxy: Expose curated slices of your data securely with a secure and customizable API proxy that validates and transforms data on the fly
- Request optimization with intelligent batching, retry, and caching to minimize API calls and costs
Prerequisites
To connect Nexla to the Exchange Rates Data API, you need an active APILayer account and an API key for the Exchange Rates Data API product. The API key is passed as a custom HTTP request header (apikey) on every request Nexla makes to the service.
Create an APILayer Account and Subscribe to Exchange Rates Data API
-
Navigate to the Exchange Rates Data API product page on the APILayer marketplace.
-
Click Subscribe for Free (or select a paid plan if your use case requires higher update frequency or a larger monthly request quota) and complete the account registration form. If you already have an APILayer account, click Log In at the top of the page and then subscribe from the product page.
-
Once logged in, you are automatically subscribed to the selected plan for the Exchange Rates Data API. Navigate to your APILayer Account Dashboard to locate your API key.
-
Under My Account, find the API Key section. Your personal API key — a unique alphanumeric string — is displayed there. Copy this value; you will enter it in Nexla during credential creation.
Your API key grants access to all APILayer APIs you are subscribed to. Keep it secure and do not share it in publicly accessible locations such as client-side code or public repositories. If a key is ever compromised, you can regenerate it from the APILayer Account Dashboard at any time.
Subscription Plans and Data Freshness
The Exchange Rates Data API offers several subscription tiers that affect how frequently exchange rate data is refreshed and how many requests you can make per month:
-
Free Plan: Up to 100 monthly requests; rates updated daily. Suitable for testing and low-volume development.
-
Basic and higher plans: Higher request volumes with rates updated every 60 minutes, every 10 minutes, or as frequently as every 60 seconds on the Business plan.
Select the plan that matches your data freshness requirements before creating your Nexla credential. You can upgrade or downgrade your plan at any time from the APILayer dashboard.
Authenticate
Credentials required
Authenticate using your Exchange Rates API key from apilayer. The key is passed as the 'apikey' header in requests.
| Field | Required | Secret | Description |
|---|---|---|---|
| API Key Value | Yes | Yes | An encoded string value used as a secret token to authenticate API requests |
| Base URL | Yes | No | API endpoint base URL for Exchange Rates Data service. Allowed values: Production |
Create a credential in Nexla
-
After selecting the data source type, click the Add Credential tile to open the Add New Credential overlay.
-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
-
The Exchange Rates Data API authenticates all requests using an API key sent as the
apikeyHTTP request header. Nexla handles this header automatically once you supply your key. Enter your Exchange Rates Data API key in the API Key Value field. This is the alphanumeric key you copied from the APILayer Account Dashboard in Prerequisites. The value is stored securely and used by Nexla to authenticate every request made on your behalf. -
The Base URL field is pre-populated with the production endpoint
https://api.apilayer.com/exchangerates_data/. This is the correct base URL for the Exchange Rates Data API and does not need to be changed for standard use.The Base URL must end with a trailing slash. All API endpoint paths (for example,
latest,convert,timeseries) are appended to this base URL by Nexla when making requests. -
Click the Save button at the bottom of the overlay. The newly added credential will now appear in a tile on the Authenticate screen during data source creation and can be selected for use with a new data source.
Use as a data source
To create a new data flow, navigate to the Integrate section, and click the New Data Flow button. Select the Exchange Rates API connector tile, then select the credential that will be used to connect to the Exchange Rates API service, and click Next; or, create a new Exchange Rates API credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure data sources to ingest data from common Exchange Rates API endpoints. Each template is designed specifically for the corresponding Exchange Rates API endpoint, making data source setup easy and efficient. Select the endpoint from which this source will fetch data from the Endpoint pulldown menu. Available endpoint templates are listed in the expandable boxes below.
Once the selected endpoint template has been configured, click the Test button to the right of the endpoint selection menu to retrieve a sample of the data that will be fetched. Sample data will be displayed in the Endpoint Test Result panel on the right, allowing you to verify that the source is configured correctly before saving.
Manual configuration
Exchange Rates API data sources can also be manually configured to ingest data from any valid Exchange Rates Data API endpoint, including endpoints not covered by the pre-built templates, chained API calls, or custom request parameters. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method (all Exchange Rates Data API endpoints use GET), endpoint URL, date/time and lookup macros, path to data, metadata, and request headers.
The base URL is https://api.apilayer.com/exchangerates_data/, followed by the endpoint path and any required query parameters, for example:
- Latest rates:
https://api.apilayer.com/exchangerates_data/latest?base=USD&symbols=EUR,GBP - Historical rates:
https://api.apilayer.com/exchangerates_data/2024-01-15?base=USD - Currency conversion:
https://api.apilayer.com/exchangerates_data/convert?from=USD&to=EUR&amount=100 - Timeseries:
https://api.apilayer.com/exchangerates_data/timeseries?start_date=2024-01-01&end_date=2024-03-31&base=USD - Fluctuation:
https://api.apilayer.com/exchangerates_data/fluctuation?start_date=2024-01-01&end_date=2024-06-30 - Symbols:
https://api.apilayer.com/exchangerates_data/symbols
When adding date/time macros, select the yyyy-MM-dd date format to match the YYYY-MM-DD format the API expects. The path to data is $.rates for the latest, historical, timeseries, and fluctuation endpoints, $ for the convert endpoint, and $.symbols for the symbols endpoint; metadata fields such as timestamp, base, and date sit outside this path and can be captured with a metadata path of $. The apikey authentication header is added automatically by Nexla from your stored credential — do not add it again in Request Headers.
Once all of the relevant settings have been configured, click the Create button in the upper right corner of the screen to save and create the new Exchange Rates API data source. Nexla will now begin ingesting data from the configured endpoint and will organize any data that it finds into one or more Nexsets.