# farsi-tools Iran City Lookup

> farsi-tools Iran City Lookup is a paid API for AI agents from farsi-tools.johnaio281.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Looks up an Iranian city by its Persian name and returns the city name and its associated province

## Facts

- Endpoint: GET https://farsi-tools.johnaio281.workers.dev/api/fa/iran-city?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farsi-tools-iran-city-lookup-7c9da390
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7U8FpnrrchUDUmxsBZCNV

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 farsi-tools-iran-city-lookup-7c9da390
```

Example prompt: Can you look up which province the Iranian city شیراز belongs to?

## When to prefer this

Use this endpoint when you need to validate or enrich an Iranian city name provided in Persian script, or when you need to associate a city with its province. It is purpose-built for Persian/Farsi text input rather than romanized or English city names, making it ideal for Iranian user-facing applications.

## Known failure modes

- City name not found in database returns found: false with no province
- Missing or empty name/text/value parameter may result in error or empty response
- Non-Persian (romanized) city names may not match — input must be in Persian script
- Misspelled or unnormalized Persian text may fail to match

## How this service works

Persian (Farsi) and Iranian utility API for AI agents. Text normalization, transliteration, Jalali (Solar Hijri) calendar conversion, Persian digits and number-to-words, Iranian national ID / Sheba (IBAN) / mobile / landline / postal code / bank card (Luhn PAN) / company ID / economic code validators, Iranian provinces and cities, official Jalali holidays, Rial-Toman conversion. Also a FIXED-PRICE deliverable SKU: Persian/Arabic data cleanup at $0.90, $9 or $25 flat per file (not per call) - upload a CSV, TSV or text file and get it back normalized, with an optional Latin transliteration column. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

Returns a JSON object with the city name in Persian (city), a boolean indicating whether the city was found (found), and the name of the Iranian province it belongs to (province).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string",
       "description": "city name in Persian"
      },
      "text": {
       "type": "string",
       "description": "alias for name"
      },
      "value": {
       "type": "string",
       "description": "alias for name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "city": "شیراز",
  "found": true,
  "province": "فارس"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farsi-tools-iran-city-lookup-7c9da390/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from farsi-tools.johnaio281.workers.dev](https://www.zero.xyz/host/farsi-tools.johnaio281.workers.dev/llms.txt)
