RapidAPI logo

Sign Up

Log In

Currency Exchange

FREE
By fyhao
Updated a month ago
Data
9.6/10
Popularity Score
2625ms
Latency
95%
Success Rate

Currency Exchange API Documentation

Live currency and foreign exchange rates by specifying source and destination quotes and optionally amount to calculate. Support vast amount of quotes around the world.

View API Details
GETexchange
GETlistquotes
GETexchange

Get Currency Exchange by specifying the quotes of source (from) and destination (to), and optionally the source amount to calculate which to get the destination amount, by default the source amount will be 1.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fromSTRING
REQUIREDSource Quote
toSTRING
REQUIREDDestination Quote
Optional Parameters
qNUMBER
OPTIONALSource Amount
Request Snippet
unirest.get("https://currency-exchange.p.rapidapi.com/exchange?q=1.0&from=SGD&to=MYR")
.header("X-RapidAPI-Host", "currency-exchange.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://currency-exchange.p.rapidapi.com/exchange?q=1.0&from=SGD&to=MYR")
.header("X-RapidAPI-Host", "currency-exchange.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication