# IranTools Persian Digits Converter

> IranTools Persian Digits Converter is a paid API for AI agents from irantools.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Converts Arabic/Latin numerals to Persian (Farsi) digits and optionally adjusts text directionality for Persian/RTL display

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/persian_digits?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/irantools-persian-digits-converter-7b052be0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4h8N5mJ3dWRnCus4-CIQ-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability irantools-persian-digits-converter-7b052be0 -d '<json body>'
```

Example prompt: Convert all the digits in this text to Persian numerals: 'Invoice 1402/06/31, total: 12500 rials' — and make sure the direction is set to RTL.

## When to prefer this

Use this endpoint when you need to localize numeric content for Persian/Farsi-language applications, documents, or displays and require Unicode-correct ۰–۹ digit substitution. Prefer this over manual regex replacement when you also need RTL direction handling or when working within an Iranian-localization pipeline alongside other IranTools endpoints.

## Known failure modes

- Missing required 'text' field returns a validation error
- Very large text payloads may be rejected or time out
- Invalid 'direction' enum value may be ignored or cause an error
- Already-Persian digits in the input are passed through without double-conversion
- Network or payment (x402) failures return HTTP 402 or 5xx errors

## How this service works

Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.

## Output

Returns the input text with Western/Arabic numerals replaced by their Persian (Farsi) Unicode equivalents (۰–۹), optionally with directionality metadata or RTL markers applied. The response is a JSON object containing the transformed text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string"
  },
  "direction": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/irantools-persian-digits-converter-7b052be0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from irantools.johnaio281.workers.dev](https://www.zero.xyz/host/irantools.johnaio281.workers.dev/llms.txt)
