Close

Numbers to Words

API

Endpoint
https://pebbles.cc/api/numbers-to-words
Parameters

Send a request with the following parameters:

apikey - Your API key

number - The number to convert to words, a positive number without commas.

Response

The API returns a JSON object containing the fields status and output.

When the operation is successful, status has a value of "success", and output holds the result of the operation.

When there is an error in the operation, status has a value of "error", and output holds the error message(s). Multiple error messages are seperated with a "|".

Examples

{ "status" : "success", "output" : "one hundred and twenty-three" }

{ "status" : "error", "output" : "Invalid input | API key not stated" }