Exchange Rate API

Operational

Reliable exchange rate API for global currencies · by APILayer

  • Finance
  • JSON
  • 170+ currencies
  • Real-time rates
Get your API key

Free plan · 100 requests / month · no card

Overview

API info

Get accurate real-time and historical exchange rates, currency conversion, and currency data in a single API call. Build currency converters, financial applications, and global products with reliable exchange rate data.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/exchangerate/latest?access_key=YOUR_ACCESS_KEY&base=EUR&symbols=USD,GBP,JPY"
Run it in the Playground

Example response

200 - OK
{
    "success": true,
    "timestamp": 1790917745,
    "base": "EUR",
    "date": "2026-10-02",
    "rates": {
        "USD": 1.12537,
        "GBP": 0.851832,
        "JPY": 177.604168
    }
}

Features

  • Easy to integrate

    Access exchange rate data through a simple REST API and lightweight JSON responses. Add your API key, select your currencies, and start receiving structured exchange rate data.

  • Global currency coverage

    Access exchange rates for currencies from around the world. Retrieve rates for the currencies your application needs through a single API.

  • Real-time & historical data

    Get the latest exchange rates or retrieve historical rates for a specific date. Use currency data across your applications, financial tools, and analytics.

  • Secure & reliable

    Connect through HTTPS encryption and integrate exchange rate data into your applications with a straightforward API built for production use.

Pricing

Flexible plan for every stage of growth

Start free. Upgrade when you go live.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get free API key

100 requests / month

Includes:

  • Update frequency: hourly
  • Historical data
  • SSL encryption
See all 11 features

Starter

For your first live product

$14.99/ month

Billed monthly

Then $0.005996 per extra request, up to 20,000 extra a month

Subscribe now

10,000 requests / month

Everything in Free, plus:

  • Base currency switching
  • Conversion endpoint
  • Commercial use
  • Standard support
See all 11 features
Most popular

Professional

For growing traffic

$59.99/ month

Billed monthly

Then $0.0023996 per extra request, up to 200,000 extra a month

Subscribe now

100,000 requests / month

Everything in Starter, plus:

  • Update frequency: 10 minutes
  • Time series endpoint
  • Bid ask spread data
  • 10× the requests of Starter

+ 1 more

See all 11 features

Enterprise

For high volume

$99.99/ month

Billed monthly

Then $0.00079992 per extra request, up to 1,000,000 extra a month

Subscribe now

500,000 requests / month

Everything in Professional, plus:

  • Update frequency: 60 seconds
  • Fluctuation endpoint
  • 5× the requests of Professional
  • Lower cost per request
See all 11 features

Custom

Need more? Contact sales for custom needs.

Contact us

Compare all features

11 featuresFree$0Get free keyStarter$14.99/moSubscribeProfessional$59.99/moSubscribeEnterprise$99.99/moSubscribe
Update frequencyhourlyhourly10 minutes60 seconds
Historical data
SSL encryption
Base currency switching–
Conversion endpoint–
Time series endpoint––
Bid ask spread data––
Fluctuation endpoint–––
Commercial use–
Standard support–
Custom solutions––––
Price per extra request after the monthly limitNone$0.005996$0.0023996$0.00079992

Playground

Try the API

Build a request in your browser and see the response it returns.

GET

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Exchange Rate API to a project.

  1. 1Get an API key

    A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Exchange Rate API. The Free plan includes 100 requests / month and needs no credit card.

    Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).

  2. 2Keep the key out of code

    Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.

    Call Exchange Rate API from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/exchangerate
    Auth
    access_key query parameter
    Formats
    JSON
    Endpoints
    • /latest Latest rates
    • /symbols Symbols
    Shell
    curl "https://api.apilayer.net/exchangerate/latest?access_key=$APILAYER_ACCESS_KEY&base=EUR&symbols=USD,GBP,JPY"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100Update frequency: hourly, Historical data, SSL encryption
    Starter10,000Base currency switching, Conversion endpoint, Commercial use, Standard support
    Professional100,000Update frequency: 10 minutes, Time series endpoint, Bid ask spread data
    Enterprise500,000Update frequency: 60 seconds, Fluctuation endpoint

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What is the Exchange Rate API?

Exchange Rate API is a currency exchange rate API that lets applications retrieve real-time and historical exchange rates and convert currencies through a simple REST API.

02.How many currencies does the Exchange Rate API support?

Exchange Rate API supports 170+ currencies.

03.What information does the Exchange Rate API return?

The API returns exchange rate data and currency conversion information in lightweight JSON format.

04.Can I get real-time exchange rates?

Yes. Exchange Rate API provides real-time exchange rate data for supported currencies.

05.Can I access historical exchange rates?

Yes. You can retrieve exchange rate data for historical dates.

06.Can I convert currencies?

Yes. The API supports currency conversion between supported currencies.

07.How does the Exchange Rate API work?

Send a request with your API key and the currencies you want to query. The API returns the requested exchange rate or conversion data in JSON format.

08.What format does the API return?

API results are delivered in lightweight JSON format, making them easy to integrate into web applications, backend services, and other systems.

09.Which currency data does the API provide?

All exchange rates are returned as currency pairs. (See API Response)"

API access

01.Is the API secure?

Exchange Rate API supports connections through industry-standard HTTPS with 256-bit encryption.

02.What are common error codes, and how should I handle them during integration?

Common error codes include 101 (missing access key) and 105 (base currency access restricted). The API returns a clear error object with a code and message, which developers should use to debug and handle issues programmatically.

03.How do I get an API access key?

If you are logged in, you can find it in your Account Dashboard, in the 3-Step Quickstart Guide, and in all interactive links contained in the API's Documentation. In your account dashboard you can reset your access key at any given time.

04.What is an API Request?

Pricing is based on the number of monthly API Requests offered for each individual Subscription Plan.

05.What happens if I exceed my API Request volume?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached.

After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly.

06.What is the API's uptime?

Every effort is made to ensure the highest possible level of availability and consistency. We are proud to have an average uptime rate of nearly 100% (99.9%), calculated based on the past 12 months.

07.Can I limit the number of output currencies?

"Yes, specific currencies can be requested simply by appending the currencies parameter followed by any comma-separated series of 3-letter currency codes of your choice.

You can learn more by taking a look at the Specify Output Currencies section of the API Documentation."

08.Can I request exchange rates for a specific time frame?

"Yes. Using the API's timeframe endpoint, you may request historical exchange rates for a time period of your choice, with a maximum range of up to 365 days.

You can learn more by taking a look at the Time-Frame Queries section of the API Documentation."

09.Can I determine fluctuation data for a specific currency throughout a certain time period?

"Yes. Using the API's change endpoint, you may request change parameters (both margin and percentage) for one or more currencies relative to a source currency, optionally within a specified time frame.

You can learn more by looking at the Currency-Change Queries section of the API Documentation."

10.How do I convert between two currencies using the API?

To convert between two currencies, you use the dedicated convert endpoint. You must specify the from and to currency codes and the amount you wish to convert in your API request.

11.Can I retrieve exchange rates for multiple currencies in a single request?

Yes, you can retrieve exchange rates for multiple currencies in one request. By using the symbols parameter, you can specify a comma-separated list of currency codes to limit the API response to only the currencies you need.

12.What is the typical response format of the API, and can I choose between JSON or XML?

The typical response format of the API is JSON. The API does not provide an option to choose between JSON or XML; all responses are returned in a JSON object.

13.Does the API include support for currency symbols, names, or regional localization?

Yes, the API provides support for currency names. The symbols endpoint returns a list of all supported currency codes with their corresponding full names, such as "United States Dollar" for USD.

14.How can I monitor my usage and avoid exceeding my API quota?

You can monitor your usage through your account dashboard, which provides up-to-date usage statistics. The system also sends automatic notifications when you reach 75%, 90%, and 100% of your monthly quota to help you avoid overage fees.

15.What is the process for upgrading or downgrading my API plan as business needs change?

You can easily upgrade or downgrade your plan directly from your dashboard. The process is simple, allowing you to change your subscription to a more suitable plan at any time based on your business needs.

Plans & pricing

01.Is there a free plan?

Exchange Rate API offers a free plan with 100 API requests per month. Paid plans start at $14.99 per month.

02.Can I also pay yearly?

Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.

03.How can I change my payment frequency?

If you need assistance changing your billing frequency, please do not hesitate to contact us.

Overages

01.What is an overage?

An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.

Prices for additional API calls will vary based on your plan.

02.Why does APILayer have overage fees?

Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.

03.How do I know if I will be charged for overages?

When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.

04.What if I consistently have more API calls than my plan allows?

If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base.

Still have a question?

Contact support