{
  "openapi": "3.0.1",
  "info": {
    "title": "Amount to Words: Arabic Tafqeet, English & 21 Languages",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "VqwydRheadnCbRdHe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmedmoq~arabic-tafqeet/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmedmoq-arabic-tafqeet",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ahmedmoq~arabic-tafqeet/runs": {
      "post": {
        "operationId": "runs-sync-ahmedmoq-arabic-tafqeet",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ahmedmoq~arabic-tafqeet/run-sync": {
      "post": {
        "operationId": "run-sync-ahmedmoq-arabic-tafqeet",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "amounts"
        ],
        "properties": {
          "amounts": {
            "title": "Amounts",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "OMR",
              "SAR",
              "AED",
              "KWD",
              "BHD",
              "QAR",
              "EGP",
              "JOD",
              "MAD",
              "GBP",
              "TRY",
              "USD",
              "EUR",
              "NONE"
            ],
            "type": "string",
            "description": "Default currency. An amount can override it with its own code, e.g. 'EGP 250'. NONE converts plain numbers.",
            "default": "OMR"
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string",
              "enum": [
                "ar",
                "en",
                "fr",
                "de",
                "es",
                "pt",
                "it",
                "nl",
                "pl",
                "ro",
                "cs",
                "sk",
                "sl",
                "hu",
                "sv",
                "da",
                "fi",
                "lt",
                "ru",
                "fa",
                "hi",
                "ur",
                "bn"
              ],
              "enumTitles": [
                "Arabic",
                "English",
                "French",
                "German",
                "Spanish",
                "Portuguese",
                "Italian",
                "Dutch",
                "Polish",
                "Romanian",
                "Czech",
                "Slovak",
                "Slovenian",
                "Hungarian",
                "Swedish",
                "Danish",
                "Finnish",
                "Lithuanian",
                "Russian",
                "Persian",
                "Hindi",
                "Urdu",
                "Bengali"
              ]
            },
            "default": [
              "ar",
              "en"
            ]
          },
          "includeUnit": {
            "title": "Include currency unit",
            "type": "boolean",
            "description": "On: 'one thousand Omani rials'. Off: the number in words only, e.g. 'one thousand'.",
            "default": true
          },
          "decimalSeparator": {
            "title": "Decimal separator in text amounts",
            "enum": [
              "auto",
              ".",
              ","
            ],
            "type": "string",
            "description": "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.",
            "default": "auto"
          },
          "addOnlyWords": {
            "title": "Add invoice wording (Only)",
            "type": "boolean",
            "description": "Wrap the result the way invoices and cheques do: Arabic 'faqat ... la ghair' and English '... Only'.",
            "default": false
          },
          "hundredSpelling": {
            "title": "Spelling of 'hundred' in Arabic",
            "enum": [
              "maeah",
              "miah"
            ],
            "type": "string",
            "description": "Arabic has two accepted spellings of 'hundred'.",
            "default": "maeah"
          },
          "englishCase": {
            "title": "English letter case",
            "enum": [
              "title",
              "sentence",
              "upper"
            ],
            "type": "string",
            "description": "Letter case of the English wording.",
            "default": "title"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}