Free Currency Exchange and Forex API

Free Currency Exchange and Forex API

Free & reliable real-time Currency Exchange and Forex API

Overview

Free Currency Exchange and Forex API for real-time Foreign Exchange rates, historical data and currency conversion

Features

Example

The Currency Exchange API is a simple endpoint which provides data retrieval endpoints. Send the following request to get the latest currency rates:

curl -X 'GET' 'https://anyapi.io/api/v1/exchange/rates?apiKey=<YOUR_API_KEY>'

which returns:

{
  "lastUpdate": 1640131200,
  "base": "EUR",
  "rates": {
    "EUR": 1,
    "USD": 1.1301,
    "JPY": 129.08,
    "BGN": 1.9558,
    ...
    "INR": 85.407,
    "PHP": 56.772,
    "SGD": 1.5422,
    "THB": 38.13,
    "ZAR": 17.9668
  }
}

Or change the base (Base Currency) to USD:

curl -X 'GET' 'https://anyapi.io/api/v1/exchange/rates?base=USD&apiKey=<YOUR_API_KEY>'

To convert a specific amount to other currency, send the following GET request:

curl -X 'GET' 'https://anyapi.io/api/v1/exchange/convert?base=USD&to=EUR&amount=100&apiKey=<YOUR_API_KEY>'

which returns:

{
  "base": "USD",
  "to": "EUR",
  "amount": 100,
  "converted": 88.49,
  "rate": 0.8849,
  "lastUpdate": 1640131200
}

Endpoints

This API provides the following endpoints:

Check out the Free Currency Exchange and Forex API Docs for more details.