# IranTools Persian Keyword Extraction

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

Extracts the most important Persian/Farsi keywords from a given text string

## Facts

- Endpoint: POST https://irantools.johnaio281.workers.dev/api/iran/persian_keywords?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/irantools-persian-keyword-extraction-a991df1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p_ojKp0eUOwJXUKfumXdW

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-persian-keyword-extraction-a991df1f -d '<json body>'
```

Example prompt: Extract the top 5 keywords from this Persian article text: 'دولت ایران در نشست امروز درباره توسعه اقتصادی و برنامه‌های زیرساختی بحث کرد و تصمیماتی در زمینه بودجه گرفت.'

## When to prefer this

Choose this endpoint when you specifically need keyword extraction from Persian/Farsi text, particularly in an Iranian content pipeline. It is purpose-built for Persian NLP and handles RTL script, Persian morphology, and Farsi stop words correctly — unlike general-purpose English keyword extractors. Prefer it over generic NLP APIs when working with Persian-language documents, news articles, social media, or SEO content.

## Known failure modes

- Missing required 'text' field returns a validation error
- Non-Persian or empty text may return an empty keyword list or unexpected results
- Overly short texts may yield no meaningful keywords
- Invalid 'limit' value (non-numeric string) may cause unexpected behavior or be ignored
- Payment failure (insufficient USDC) results in HTTP 402 response

## 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 list of the most important Persian keywords extracted from the input text, ranked or filtered to the requested limit count.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/irantools-persian-keyword-extraction-a991df1f/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)
