# Amount to Words: Arabic Tafqeet, English & 21 Languages (`ahmedmoq/arabic-tafqeet`) Actor

Convert amounts to words for invoices and cheques: Arabic tafqeet with correct grammar, English and 21 more languages (French, Spanish, Russian, Hindi, Urdu, Persian...). 13 currencies, with or without the unit.

- **URL**: https://apify.com/ahmedmoq/arabic-tafqeet.md
- **Developed by:** [Ahmed AlMuqbali](https://apify.com/ahmedmoq) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 amount converteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amount to Words: Arabic Tafqeet, English & 21 Languages

Convert amounts to words in **Arabic (tafqeet / تفقيط)**, **English** and 21 more languages for invoices, cheques, receipts and contracts. Correct Arabic grammar, 13 currencies, no external services.

| Amount | Arabic | English |
|---|---|---|
| 1250.500 OMR | ألف ومائتان وخمسون ريالاً عمانياً وخمسمائة بيسة | One Thousand Two Hundred Fifty Omani Rials and Five Hundred Baisa |
| 2000 SAR | ألفا ريال سعودي | Two Thousand Saudi Riyals |
| 15.75 SAR (with "Only") | فقط خمسة عشر ريالاً سعودياً وخمس وسبعون هللة لا غير | Fifteen Saudi Riyals and Seventy-Five Halalas Only |

### Why use it

- **Real Arabic grammar**, not word-by-word: dual forms (ريالان، ألفا)، plural for 3 to 10 (ثلاثة آلاف)، accusative for 11 to 99 (ريالاً)، construct forms (مائتا ريال)، and feminine counting for sub-units (ثماني بيسات، إحدى وعشرون هللة).
- **13 currencies with the right sub-units and decimals**: OMR, SAR, AED, KWD, BHD, QAR, EGP, JOD, MAD, GBP, TRY, USD, EUR. OMR, KWD, BHD and JOD use 3 decimals; the others use 2.
- **A different currency per amount**: write the code with the amount (`SAR 15.75`, `250 EGP`).
- **Both decimal styles**: `1,250.50` and `1.250,50` are detected automatically; set `decimalSeparator` to force one.
- **Invoice wording** on request: «فقط ... لا غير» and "... Only".
- **Accepts messy input**: `1,250.500`, `1 250,75`, `١٢٥٠٫٥٠٠`, `OMR 12.5`.
- **21 more languages**: French, German, Spanish, Portuguese, Italian, Dutch, Polish, Romanian, Czech, Slovak, Slovenian, Hungarian, Swedish, Danish, Finnish, Lithuanian, Russian, Persian, Hindi, Urdu, Bengali. Hindi, Urdu and Bengali use the Indian system (lakh, crore).
- **With or without the currency unit**: switch `includeUnit` off to get only the number in words.
- Fast and cheap: no browser, no proxy, no AI. Works from n8n, Make, Zapier or any app through the Apify API, and from AI agents through MCP.

#### Currency names in other languages

Arabic and English write every supported currency. In French, German, Spanish, Portuguese, Italian, Dutch, Lithuanian, Finnish and Russian, EUR and USD are written with their currency names. In every other case the number is written in words without the unit, and the language code is listed in `unitMissing`.

### Input

```json
{
  "amounts": ["1250.500", "3000", "SAR 15.75", "250 EGP"],
  "currency": "OMR",
  "languages": ["ar", "en", "fr", "hi"],
  "includeUnit": true,
  "decimalSeparator": "auto",
  "addOnlyWords": false,
  "hundredSpelling": "maeah",
  "englishCase": "title"
}
```

| Field | Values |
|---|---|
| `currency` | Default currency: `OMR`, `SAR`, `AED`, `KWD`, `BHD`, `QAR`, `EGP`, `JOD`, `MAD`, `GBP`, `TRY`, `USD`, `EUR`, `NONE` (plain number) |
| `decimalSeparator` | `auto`, `.` or `,` |
| `languages` | `ar`, `en`, `fr`, `de`, `es`, `pt`, `it`, `nl`, `pl`, `ro`, `cs`, `sk`, `sl`, `hu`, `sv`, `da`, `fi`, `lt`, `ru`, `fa`, `hi`, `ur`, `bn` |
| `includeUnit` | `true` (with currency name) or `false` (number only) |
| `hundredSpelling` | `maeah` (مائة) or `miah` (مئة) |
| `englishCase` | `title`, `sentence`, `upper` |

Amounts up to 999 trillion. Extra decimals are rounded to the currency's precision.

### Output

```json
{
  "input": "1250.500",
  "amount": "1250.500",
  "currency": "OMR",
  "arabic": "ألف ومائتان وخمسون ريالاً عمانياً وخمسمائة بيسة",
  "english": "One Thousand Two Hundred Fifty Omani Rials and Five Hundred Baisa",
  "words": {
    "ar": "ألف ومائتان وخمسون ريالاً عمانياً وخمسمائة بيسة",
    "en": "One Thousand Two Hundred Fifty Omani Rials and Five Hundred Baisa",
    "hi": "एक हज़ार दो सौ पचास दशमलव पाँच"
  },
  "unitMissing": ["hi"],
  "error": null
}
```

### Pricing

You pay per converted amount. Amounts that cannot be read are returned with an `error` and are not charged.

# Actor input Schema

## `amounts` (type: `array`):

Amounts to convert, e.g. 1250.500 or 99.99. Add a currency code to use a different currency for one amount, e.g. 'SAR 15.75'. Commas, spaces and Arabic-Indic digits are accepted.

## `currency` (type: `string`):

Default currency. An amount can override it with its own code, e.g. 'EGP 250'. NONE converts plain numbers.

## `languages` (type: `array`):

Languages to write the amounts in. Arabic and English support all currencies; other languages include the currency name for EUR and USD where available, otherwise they return the number in words.

## `includeUnit` (type: `boolean`):

On: 'one thousand Omani rials'. Off: the number in words only, e.g. 'one thousand'.

## `decimalSeparator` (type: `string`):

How to read text amounts. Auto handles '1,250.50' and '1.250,50'; '1,250' is read as one thousand two hundred fifty. Choose comma if you write '7,250' meaning 7.25.

## `addOnlyWords` (type: `boolean`):

Wrap the result the way invoices and cheques do: Arabic 'faqat ... la ghair' and English '... Only'.

## `hundredSpelling` (type: `string`):

Arabic has two accepted spellings of 'hundred'.

## `englishCase` (type: `string`):

Letter case of the English wording.

## Actor input object example

```json
{
  "amounts": [
    "1250.500",
    "3000",
    "SAR 15.75"
  ],
  "currency": "OMR",
  "languages": [
    "ar",
    "en"
  ],
  "includeUnit": true,
  "decimalSeparator": "auto",
  "addOnlyWords": false,
  "hundredSpelling": "maeah",
  "englishCase": "title"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "amounts": [
        "1250.500",
        "3000",
        "SAR 15.75"
    ],
    "languages": [
        "ar",
        "en"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmedmoq/arabic-tafqeet").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "amounts": [
        "1250.500",
        "3000",
        "SAR 15.75",
    ],
    "languages": [
        "ar",
        "en",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("ahmedmoq/arabic-tafqeet").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "amounts": [
    "1250.500",
    "3000",
    "SAR 15.75"
  ],
  "languages": [
    "ar",
    "en"
  ]
}' |
apify call ahmedmoq/arabic-tafqeet --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmedmoq/arabic-tafqeet"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/v3Tecw04cxXajYcs3/builds/VqwydRheadnCbRdHe/openapi.json
