Convert

FREE
By neutrinoapi
Updated 4 months ago
Tools
8/10
Popularity Score
775ms
Latency
58%
Success Rate

Convert API Documentation

A powerful unit conversion tool. Convert currency (using an up-to-date international currency feed). Convert most known measurement types: imperial, metric, mass, length, temperature, time (and more). The convertor will accept full unit names as well as abbreviations (e.g. millimeter and mm)

View API Details
POSTConvert
POSTConvert
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
from-typeSTRING
REQUIREDThe type of the value to convert from
to-typeSTRING
REQUIREDThe type to convert to
from-valueSTRING
REQUIREDThe value to convert from
Code Snippet
unirest.post("https://community-neutrino-currency-conversion.p.rapidapi.com/convert")
.header("X-RapidAPI-Host", "community-neutrino-currency-conversion.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("from-type=NZD")
.send("to-type=GBP")
.send("from-value=10")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://community-neutrino-currency-conversion.p.rapidapi.com/convert
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://community-neutrino-currency-conversion.p.rapidapi.com/convert")
.header("X-RapidAPI-Host", "community-neutrino-currency-conversion.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("from-type=NZD")
.send("to-type=GBP")
.send("from-value=10")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication