# Unicode Normalize & Codepoint Analyzer

> Unicode Normalize & Codepoint Analyzer is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Applies NFC/NFD/NFKC/NFKD Unicode normalization to a string and returns per-codepoint metadata (name, category, script), flagging mixed-script and potential homoglyph attacks.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/unicode-normalize
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unicode-normalize-codepoint-analyzer-da345c27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LGjSscTxKZReltya0RudT

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 unicode-normalize-codepoint-analyzer-da345c27 -d '<json body>'
```

Example prompt: Run NFKC normalization on this string — 'раyраl.com' — and check whether it mixes scripts or contains any homoglyph lookalike characters, giving me the Unicode name, category, and script for each codepoint.

## When to prefer this

Use this endpoint when you need both Unicode normalization and security-aware codepoint analysis in one call — specifically when detecting homoglyph/confusable character attacks in usernames, domains, or free-text input. Prefer it over a basic string normalize function when you need per-codepoint script/category metadata or mixed-script detection. It is a pay-per-call x402 micropayment service, making it suitable for on-demand agent workflows without subscription overhead.

## Known failure modes

- Invalid normalization form specified — returns 400 with supported forms listed
- Input string contains unpaired surrogates or malformed UTF-8 — returns 400 or error per codepoint
- Empty string input — may return empty array with no warnings
- Payment not attached or insufficient — returns 402 requiring x402 USDC micropayment
- Request timeout for very long strings

## How this service works

Apply NFC/NFD/NFKC/NFKD normalization and report per-codepoint name, category and script, flagging mixed-script (possible homoglyph) strings.

## Output

Returns the normalized form of the input string, along with a per-codepoint breakdown including each character's Unicode name, general category (e.g. Ll, Lu, Nd), and script (e.g. Latin, Cyrillic, Han). Also includes a boolean mixed-script flag and any detected homoglyph/confusable warnings for security review.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "normalized": "file"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/unicode-normalize-codepoint-analyzer-da345c27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
