{"uid":"cap_KXsyun3PUjhB0EgNFHLdK","slug":"farsi-tools-fix-rtl-f39a0fd5","name":"Farsi Tools - Fix RTL","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/fix-rtl?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":{"output":"سلام"}},"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_IoTCkZVLU9QWRXfjwl5B_","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":"Fixes right-to-left (RTL) text direction issues in Persian/Farsi strings, returning properly ordered and formatted text","exampleAgentPrompt":"Fix the RTL text direction issues in this Persian string so it displays correctly: 'سلام دنیا'","exampleUseCases":[{"title":"Fix garbled Persian UI text","prompt":"I have Persian text that's displaying in the wrong direction in my app — can you fix the RTL on this string: 'این متن اشتباه است'?"},{"title":"Normalize Farsi database content","prompt":"Take this Farsi text pulled from our database and fix any right-to-left direction problems before we render it on screen: 'متن فارسی'"},{"title":"Correct Persian copy before publishing","prompt":"Before I publish this Persian article excerpt, can you fix the RTL text direction to make sure it reads correctly: 'خوش آمدید به سایت ما'?"}],"resultDescription":"A JSON object with an 'output' field containing the RTL-corrected Persian/Farsi text string, with proper right-to-left character ordering and direction fixed.","failureModes":["Missing required 'text' query parameter returns an error","Text exceeding 100,000 characters is rejected","Payment failure via x402 protocol returns 402 Payment Required","Invalid or non-Persian input may return unchanged or unexpected output","Network timeout on the Cloudflare Worker"],"whenToPreferThis":"Choose this endpoint when you need to programmatically fix RTL text direction issues in Persian/Farsi strings, especially for display in apps, databases, or publishing pipelines. Ideal for automated workflows processing Farsi content at $0.005 per call via x402/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:15.249Z","isFirstParty":false,"canonicalSlug":"farsi-tools-fix-rtl-f39a0fd5"}