{"uid":"cap_YBclZP9UfwLnT2b5S6ROh","slug":"farsi-digits-converter-0a95ffb8","name":"Farsi Digits Converter","description":"Persian (Farsi) and Iranian utility API for AI agents. Text normalization, transliteration, Jalali (Solar Hijri) calendar conversion, Persian digits and number-to-words, Iranian national ID / Sheba (IBAN) / mobile / landline / postal code / bank card (Luhn PAN) / company ID / economic code validators, Iranian provinces and cities, official Jalali holidays, Rial-Toman conversion. Also a FIXED-PRICE deliverable SKU: Persian/Arabic data cleanup at $0.90, $9 or $25 flat per file (not per call) - upload a CSV, TSV or text file and get it back normalized, with an optional Latin transliteration column. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.","url":"https://farsi-tools.johnaio281.workers.dev/api/fa/digits?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"to":{"enum":["ascii","persian"],"type":"string"},"text":{"type":"string","description":"text containing digits"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"output":"123 123 123"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MBuwrHWLVTsR6EsWu3Sx9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts digit characters in Persian/Farsi text between ASCII (Western) and Persian numeral forms","exampleAgentPrompt":"Convert the digits in this Persian text to ASCII Western numerals: 'تعداد ۱۲۳ کالا در انبار ۴۵ موجود است'","exampleUseCases":[{"title":"Normalize Persian invoice numbers","prompt":"I have a Farsi invoice that uses Persian digit characters like ۱۲۳۴ — can you convert all the digits in this text to regular ASCII numbers so my system can process them: 'شماره فاکتور: ۹۸۷۶ مبلغ: ۴۵۰۰۰ تومان'"},{"title":"Display digits in Persian for localized UI","prompt":"I need to show this number string '2024 - 150 items' to Persian-speaking users with proper Persian digit characters — convert the digits to Persian format for me."},{"title":"Standardize mixed-digit user input","prompt":"A user submitted a form in Farsi with mixed digit styles — some numbers are in Persian numerals and some are in ASCII. Can you run this text through digit normalization to ASCII so I can parse it: 'کد پستی: ۱۴۵۶۷ تلفن: 09123456789'"}],"resultDescription":"A JSON object with an 'output' field containing the original text with all digit characters converted to the target format (either ASCII Western digits 0-9 or Persian/Eastern Arabic digits ۰-۹), leaving non-digit characters unchanged.","failureModes":["Missing required 'text' query parameter returns an error","Invalid 'to' enum value (not 'ascii' or 'persian') causes a validation error","Payment failure via x402 protocol returns HTTP 402 if USDC funds are insufficient","Empty text input may return an empty or unchanged string","Non-UTF-8 encoded text may cause processing errors"],"whenToPreferThis":"Choose this endpoint when you need to normalize digit characters in Persian or Farsi text between Persian numeral glyphs (۰-۹) and ASCII digits (0-9). Ideal for preprocessing Farsi user input for numeric parsing, or for rendering numbers in a culturally appropriate format for Persian-speaking audiences. Prefer this over a general transliteration service when you specifically need digit-only conversion without altering other characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:27.456Z","isFirstParty":false,"canonicalSlug":"farsi-digits-converter-0a95ffb8"}