{"uid":"cap_QYCQWuAhhOVErp9GiVLcb","slug":"irantools-unicode-normalize-b01862b9","name":"IranTools Unicode Normalize","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/unicode_normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"form":{"type":"string"},"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_b_gyKZjmabsFgJPSNtGpa","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":"Normalizes Unicode text to a specified normalization form (NFC, NFD, NFKC, NFKD) for consistent character representation","exampleAgentPrompt":"Normalize this Persian text to NFC form so I can compare it consistently: 'مرحبا بالعالم'","exampleUseCases":[{"title":"Normalize Persian database text","prompt":"I have Persian user names stored in my database with inconsistent Unicode encoding — some are NFD and some are NFC. Can you normalize this string to NFC so I can compare them reliably: 'علی احمدی'?"},{"title":"Fix garbled Arabic display","prompt":"This Arabic text looks garbled when displayed in my app. Apply NFKC normalization to it so the characters are in their canonical composed form: 'ﻋﺮﺑﻲ ﻧﺺ'"},{"title":"Pre-process text before keyword extraction","prompt":"Before I extract keywords from this Persian article snippet, normalize it to NFC so diacritics and composed characters are consistent: 'آموزش زبان فارسی در مدارس'"}],"resultDescription":"Returns a JSON object containing the normalized text string in the requested Unicode normalization form, along with metadata such as the form applied and possibly character counts before and after normalization.","failureModes":["Missing required 'text' field returns 400 error","Invalid normalization form value returns error or defaults","Payment not included or insufficient USDC balance returns 402","Very long strings may hit worker size limits","Non-string input types cause validation errors"],"whenToPreferThis":"Choose this endpoint when you need server-side Unicode normalization for Persian, Arabic, or any Unicode text — especially when pre-processing text for comparison, storage, or search where character equivalence matters. Prefer this over client-side normalization when you need a stateless, pay-per-call API without infrastructure setup, or when working within an AI agent pipeline that already uses IranTools for other Iranian text utilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:36.994Z","isFirstParty":false,"canonicalSlug":"irantools-unicode-normalize-b01862b9"}