{"uid":"cap_PUFU5teUyzi-6rIU_5bL5","slug":"farsi-text-similarity-80df3561","name":"Farsi Text Similarity","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/similarity?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":["a","b"],"properties":{"a":{"type":"string","description":"first string"},"b":{"type":"string","description":"second string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"similarity":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mDHOXXbvnxmaYQS1JE6NU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a similarity score between two Persian (Farsi) strings","exampleAgentPrompt":"How similar are these two Farsi strings: 'سلام دنیا' and 'سلام به دنیا'? Give me a similarity score.","exampleUseCases":[{"title":"Deduplicating Persian content entries","prompt":"I have two Farsi product descriptions — 'کفش ورزشی مردانه' and 'کفش مردانه ورزشی' — can you check how similar they are so I can tell if they're duplicates?"},{"title":"Fuzzy matching Persian user inputs","prompt":"A user typed 'تهران' and another typed 'طهران' — how similar are those two Farsi strings? I need a score to decide if they mean the same city."},{"title":"Evaluating Persian translation quality","prompt":"I translated the same sentence into Farsi twice using different methods: 'من به مدرسه می‌روم' and 'من به مدرسه رفتم' — how similar are these two Persian strings?"}],"resultDescription":"A JSON object containing a single 'similarity' field with a numeric score (likely 0–1) indicating how similar the two input Farsi strings are, where 1 represents identical or maximum similarity.","failureModes":["Missing required query parameters 'a' or 'b' returns an error","Non-Persian or empty strings may return low or unexpected similarity scores","Payment failure via x402 protocol returns 402 Payment Required","Very long strings may cause latency or truncation issues"],"whenToPreferThis":"Choose this endpoint when you need to compare two Persian (Farsi) strings specifically, especially in a pay-per-call context without needing a subscription. Ideal for lightweight, single-pair comparisons of Persian text where a dedicated Farsi-aware similarity metric is preferred over generic multilingual embeddings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:36:16.590Z","isFirstParty":false,"canonicalSlug":"farsi-text-similarity-80df3561"}