{"uid":"cap_1OA-v99P10Hpob4FnwPVW","slug":"farsi-tools-persian-text-statistics-79105cc8","name":"Farsi Tools - Persian Text Statistics","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/stats?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":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"stats":{"zwnj":0,"chars":9,"lines":1,"words":2}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RVdfK5nlZx4eNv2uZg0H1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes character, word, line, and ZWNJ statistics for a given Persian (Farsi) text string","exampleAgentPrompt":"Can you give me the character count, word count, line count, and ZWNJ usage for this Persian text: 'سلام دنیا'?","exampleUseCases":[{"title":"Quality check Persian document","prompt":"I have this Persian paragraph and I need to know how many words, characters, and lines it contains, and whether it has any ZWNJ characters: 'این یک متن آزمایشی است که برای بررسی آمار استفاده می‌شود'"},{"title":"Validate Farsi user input length","prompt":"Can you check the stats on this Farsi user submission to see how many characters and words it contains? The text is: 'درخواست من برای ثبت‌نام در دوره'"},{"title":"ZWNJ usage audit in Farsi content","prompt":"I want to audit this Persian article excerpt for ZWNJ usage — tell me the total characters, words, lines, and how many ZWNJs appear: 'می‌خواهم بدانم این متن چند کلمه و چند کاراکتر دارد'"}],"resultDescription":"Returns a JSON object with a 'stats' key containing: 'chars' (total character count), 'words' (word count), 'lines' (line count), and 'zwnj' (count of zero-width non-joiner characters) for the submitted Persian text.","failureModes":["Missing 'text' query parameter returns an error","Input exceeding 100,000 characters may be rejected","Non-Persian or empty text may return zero counts without error","Payment failure (x402) results in 402 response before processing","Malformed JSON body returns 400 error"],"whenToPreferThis":"Choose this endpoint when you need to compute basic text statistics (character, word, line, ZWNJ counts) specifically for Persian/Farsi text. It is the right choice when working with right-to-left Persian Unicode content and especially when ZWNJ character detection is needed, which general-purpose text tools often handle incorrectly for Persian.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:40.464Z","isFirstParty":false,"canonicalSlug":"farsi-tools-persian-text-statistics-79105cc8"}