# IranTools FNV-1a Hash

> IranTools FNV-1a Hash 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).

Computes the FNV-1a (Fowler–Noll–Vo) hash of an input text string

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/fnv_hash?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-fnv-1a-hash-2cd9cb80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IO1y5m9ricEPYyXXZfGIQ

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-fnv-1a-hash-2cd9cb80 -d '<json body>'
```

Example prompt: Compute the FNV-1a hash of the text 'سلام دنیا' using IranTools.

## When to prefer this

Choose this endpoint when you need a fast, non-cryptographic hash of a text string — especially Persian or Unicode text — and want a pay-per-call model with no API key or signup. Prefer it over SHA/MD5 when FNV-1a compatibility is specifically required (e.g. matching hashes produced by other FNV implementations). Useful in pipelines already using other IranTools endpoints.

## Known failure modes

- Missing required 'text' field returns a 400 or validation error
- Empty string input may return hash of empty input or an error
- Payment failure (402) if USDC balance is insufficient on Base
- Network timeout on the Cloudflare Workers edge
- Unexpected Unicode normalization differences affecting hash output

## 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 FNV-1a hash value of the input text, typically as a numeric or hex digest representation suitable for use as a fingerprint, cache key, or checksum.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "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-fnv-1a-hash-2cd9cb80/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)
