# Number to Words API

> Number to Words is a number to words API that converts numeric values into written cardinal words and counts whole and fractional digits. Pass any integer or float to get the spelled-out text along with digit counts and locale information.

**Endpoint:** `GET https://api.apiverve.com/v1/numbertowords`  
**Category:** Data Conversion  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/numbertowords

## Overview

A number to words API for turning digits into text in code: send a number and get it written out in US English, such as 975 as nine hundred seventy-five. Negative numbers read as minus, and decimals are read digit by digit after point, so 975.07 becomes nine hundred seventy-five point zero seven. Whole numbers up to 9,007,199,254,740,991 either side of zero are supported. Every plan returns the cardinal words and digit counts; paid plans add the ordinal form (nine hundred seventy-fifth), each digit as a word and the decimal digits as words.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/numbertowords?number=975.07&currency=USD" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `number` | number | Yes | The number to convert to words |
| `currency` | string | No | Currency for the currencyWords block: USD (default), CAD, AUD, NZD, EUR, GBP, INR or ZAR. INR amounts are worded in lakh and crore. default USD. One of: USD, CAD, AUD, NZD, EUR, GBP, INR, ZAR |

## Response fields

- `number` — number · The original number provided for conversion
- `words` — string · The cardinal word representation of the number
- `ordinal` — string · The ordinal word representation of the number (null for non-integers) · (premium)
- `numberOfDigits_numeric` — number · Count of digits before the decimal point
- `numberOfDigits_words` — string · The digit count expressed as words · (premium)
- `eachNumber` — array · Array containing each individual digit as words · (premium)
- `afterDecimal` — object · Breakdown of the digits after the decimal point, or null when the number has no fractional part
  - `afterDecimal.number` — string · Decimal portion of the number as string
  - `afterDecimal.words` — array · Decimal digits represented as individual words · (premium)
  - `afterDecimal.numberOfDigits_numeric` — number · Count of digits after the decimal point
  - `afterDecimal.numberOfDigits_words` — string · Decimal digit count expressed as words · (premium)
- `locale` — string · Language locale code for the conversion

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "number": 975.07,
    "words": "nine hundred seventy-five point zero seven",
    "ordinal": "nine hundred seventy-fifth point zero seven",
    "numberOfDigits_numeric": 3,
    "numberOfDigits_words": "three",
    "eachNumber": [
      "nine",
      "seven",
      "five"
    ],
    "afterDecimal": {
      "number": "07",
      "words": [
        "zero",
        "seven"
      ],
      "numberOfDigits_numeric": 2,
      "numberOfDigits_words": "two"
    },
    "locale": "en-US"
  }
}
```

## Use cases

- **Check Printing Systems** — When printing legal bank checks, payroll software converts dollar totals into written cardinal words to prevent tampering with numeric amounts.
- **Legal Contract Drafting** — Contract automation platforms convert monetary liabilities and lease terms into spelled-out words to accompany raw figures in formal agreements.
- **Primary Math Quizzes** — Educational apps generate vocabulary flashcards and spelling tests by matching raw digits with their corresponding cardinal word strings.
- **Audio Receipt Pronunciation** — To read store totals aloud over phone support or smart speakers, accessibility services convert numeric totals into speakable word phrasing.

## SDKs

- **npm** — `npm install @apiverve/numbertowords` (https://www.npmjs.com/package/@apiverve/numbertowords)
- **PyPI** — `pip install apiverve-numbertowords` (https://pypi.org/project/apiverve-numbertowords/)
- **NuGet** — `dotnet add package APIVerve.API.NumbertoWords` (https://www.nuget.org/packages/APIVerve.API.NumbertoWords)
- **Source** — https://github.com/apiverve/numbertowords-api

## More

- Full reference: https://docs.apiverve.com/ref/numbertowords
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
