RapidAPI logo

Sign Up

Log In

Currency converter

FREE
By warting
Updated 3 months ago
Finance
9.1/10
Popularity Score
260ms
Latency
-
Success Rate

Currency converter API Documentation

Simple and free currency converter. Insert an amount, what currency to convert from and what currency to convert to. This API is free to use!

View API Details
GETConvert
GETavailablecurrencies
GETConvert
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
from_amountNUMBER
REQUIREDThe amount to convert
fromSTRING
REQUIREDOriginal currency
toSTRING
REQUIREDCurrency to convert to
Request Snippet
unirest.get("https://currencyconverter.p.rapidapi.com/?from_amount=1&from=USD&to=SEK")
.header("X-RapidAPI-Host", "currencyconverter.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://currencyconverter.p.rapidapi.com/?from_amount=1&from=USD&to=SEK")
.header("X-RapidAPI-Host", "currencyconverter.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