RapidAPI logo

Sign Up

Log In

Currency Convert

FREEMIUM
By djinn
Updated 3 months ago
Finance
1.9/10
Popularity Score
116ms
Latency
-
Success Rate

Currency Convert API Documentation

Fast realtime exchange rates and conversion API

View API Details
GET/
GET/usd
GET/eur
GET/

Currency conversion from source currency to destination

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fromSTRING
REQUIREDSource currency from which amount will be converted
toSTRING
REQUIREDThe amount will be converted to destination currency using current price
amountNUMBER
REQUIREDAmount which will be converted to new amount in destionation currency
Request Snippet
unirest.get("https://djinn-currency-convert-v1.p.rapidapi.com/?from=USD&to=EUR&amount=1000.0")
.header("X-RapidAPI-Host", "djinn-currency-convert-v1.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://djinn-currency-convert-v1.p.rapidapi.com/?from=USD&to=EUR&amount=1000.0")
.header("X-RapidAPI-Host", "djinn-currency-convert-v1.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