GET/v1/numbers/words
Spell an integer in English words, cardinal or ordinal
PARAMETERS
- nquery · stringREQUIRED
- The integere.g. 1234
- ordinalquery · boolean
- true → "one thousand two hundred thirty-fourth"e.g. false
REQUEST
curl "https://api.apialmanac.com/v1/numbers/words?n=1234" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/numbers/words?n=1234", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/numbers/words?n=1234", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"n": "1234",
"words": "one thousand two hundred thirty-four",
"ordinal": false
}