Currencylayer

FREE
By volodimir.kudriachenko
Updated 5 months ago
Financial
7.1/10
Popularity Score
274ms
Latency
100%
Success Rate

Currencylayer API Documentation

Retrieve currency conversions and global exchange rates.

View API Details
POSTgetCurrencies
POSTgetCurrenciesChanges
POSTgetCurrencyConversion
POSTgetHistoricalExchangeRate
POSTgetRealTimeExchangeRates
POSTgetCurrencies

A full list of supported currencies.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
accessKeyCREDENTIALS
REQUIREDYour API Access Key.
Code Snippet
unirest.post("https://Currencylayervolodimir-kudriachenkoV1.p.rapidapi.com/getCurrencies")
.header("X-RapidAPI-Host", "Currencylayervolodimir-kudriachenkoV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://Currencylayervolodimir-kudriachenkoV1.p.rapidapi.com/getCurrencies
Request Method: POST
Response Headers
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.post("https://Currencylayervolodimir-kudriachenkoV1.p.rapidapi.com/getCurrencies")
.header("X-RapidAPI-Host", "Currencylayervolodimir-kudriachenkoV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication