{"uid":"cap_Ph6VyesK1BFF2wSptMJjj","slug":"irantools-script-detection-fb7eb4a5","name":"IranTools Script Detection","description":"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.","url":"https://irantools.johnaio281.workers.dev/api/iran/script_detect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_sCV6meUrmFg5TpA71UO7z","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":"Detects which writing script(s) are present in a given text string (e.g. Persian, Arabic, Latin, Cyrillic)","exampleAgentPrompt":"Can you detect what writing script this text is using: 'سلام دنیا'? I need to know if it's Persian, Arabic, or something else.","exampleUseCases":[{"title":"Routing multilingual user input","prompt":"I'm receiving messages from users and need to know what script they're typed in before I route them — can you check what script this text is written in: 'Привет мир'?"},{"title":"Validating Persian form field input","prompt":"A user submitted this text in a form that should only accept Persian script: 'Hello world' — can you detect what script it is so I can validate whether it's correct?"},{"title":"Classifying mixed-script content","prompt":"I have this string that might have a mix of scripts: 'abc سلام 123' — can you identify what writing systems are present in it?"}],"resultDescription":"Returns a JSON object indicating which Unicode script(s) were detected in the input text, likely including script names (e.g. Arabic/Persian, Latin, Cyrillic) and possibly confidence scores or character breakdowns per script.","failureModes":["Empty text input returns an error or empty result","Very short or ambiguous text may produce uncertain script classification","Mixed-script text may list multiple scripts without a single dominant result","Non-UTF-8 encoded input could cause parsing failures","Network errors or payment failures return HTTP 402 or 5xx errors"],"whenToPreferThis":"Use this endpoint when you need to programmatically identify the Unicode writing script of a text string, especially when handling Persian/Farsi, Arabic, or other non-Latin scripts. Prefer this over general language detection APIs when the goal is script-level classification (e.g. Latin vs Cyrillic vs Arabic script) rather than specific language identification. Particularly useful in pipelines that pre-process multilingual or user-generated content before applying script-specific NLP tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:41.821Z","isFirstParty":false,"canonicalSlug":"irantools-script-detection-fb7eb4a5"}