Currencystack

FREEMIUM
By Currencystack
Updated a day ago
Business
7/10
Popularity Score
528ms
Latency
93%
Success Rate

Currencystack API Documentation

A reliable API for foreign exchange rates and currency conversion.

View API Details
GET/currency
GET/currency

Get the latest currency conversion data for a particular currency.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
targetSTRING
REQUIREDTarget currency
baseSTRING
REQUIREDBase currency
Code Snippet
unirest.get("https://currencystack.p.rapidapi.com/currency?target=EUR&base=USD")
.header("X-RapidAPI-Host", "currencystack.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://currencystack.p.rapidapi.com/currency
Request Method: GET
Response Headers
"content-type": "application/json; charset=utf-8"
"date": "Fri, 28 Jun 2019 22:02:20 GMT"
"server": "RapidAPI-1.0.16"
"x-rapidapi-region": "AWS - eu-central-1"
"x-rapidapi-version": "1.0.16"
"x-ratelimit-limit": "20"
"x-ratelimit-remaining": "19"
"x-ratelimit-reset": "1561759340"
"content-length": "111"
"connection": "Close"
Response Body

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://currencystack.p.rapidapi.com/currency?target=EUR&base=USD")
.header("X-RapidAPI-Host", "currencystack.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