Getting Started with Number2Words

This page will help you get started with Number2Words. You'll be up and running in a jiffy!

What is Number2Words?

<?php

$request = new HttpRequest();
$request->setUrl('https://number2words4.p.rapidapi.com/v1/');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
	'number' => '98765432.10',
	'language' => 'en',
	'currency' => 'dollar',
	'currency_unit' => 'cent',
	'output_format' => 'text'
]);

$request->setHeaders([
	'accept-charset' => 'utf-8',
	'x-rapidapi-host' => 'number2words4.p.rapidapi.com',
	'x-rapidapi-key' => '6a61bed77cmsh79504697a5aba5cp1b83d2jsn7c6815838923'
]);

try {
	$response = $request->send();

	echo $response->getBody();
} catch (HttpException $ex) {
	echo $ex;
}
import requests

url = "https://number2words4.p.rapidapi.com/v1/"

querystring = {"number":"98765432.10","language":"en","currency":"dollar","currency_unit":"cent","output_format":"text"}

headers = {
    'accept-charset': "utf-8",
    'x-rapidapi-host': "number2words4.p.rapidapi.com",
    'x-rapidapi-key': "6a61bed77cmsh79504697a5aba5cp1b83d2jsn7c6815838923"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)
const request = require('request');

const options = {
  method: 'GET',
  url: 'https://number2words4.p.rapidapi.com/v1/',
  qs: {
    number: '98765432.10',
    language: 'en',
    currency: 'dollar',
    currency_unit: 'cent',
    output_format: 'text'
  },
  headers: {
    'accept-charset': 'utf-8',
    'x-rapidapi-host': 'number2words4.p.rapidapi.com',
    'x-rapidapi-key': '6a61bed77cmsh79504697a5aba5cp1b83d2jsn7c6815838923',
    useQueryString: true
  }
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);

	console.log(body);
});

Number2Text is a php library that converts any digits-number into the equivalent text in 10 languages.