# IranTools Unicode Normalize

> IranTools Unicode Normalize is a paid API for AI agents from irantools.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Normalizes Unicode text to a specified normalization form (NFC, NFD, NFKC, NFKD) for consistent character representation

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/unicode_normalize?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/irantools-unicode-normalize-b01862b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QYCQWuAhhOVErp9GiVLcb

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability irantools-unicode-normalize-b01862b9 -d '<json body>'
```

Example prompt: Normalize this Persian text to NFC form so I can compare it consistently: 'مرحبا بالعالم'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "form": {
   "type": "string"
  },
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/irantools-unicode-normalize-b01862b9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from irantools.johnaio281.workers.dev](https://www.zero.xyz/host/irantools.johnaio281.workers.dev/llms.txt)
