# Iranian Landline Number Validator

> Iranian Landline Number Validator 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).

Validates an Iranian landline phone number and returns its validity, area code, normalized form, and associated city

## Facts

- Endpoint: GET https://farsi-tools.johnaio281.workers.dev/api/fa/validate-landline?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/iranian-landline-number-validator-56bd4d86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xGNbOrPOFvd5AiZTnSLmO

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 iranian-landline-number-validator-56bd4d86
```

Example prompt: Check if 021-12345678 is a valid Iranian landline number and tell me which city it belongs to.

## When to prefer this

Choose this endpoint when you need to validate Iranian landline phone numbers specifically — it provides richer output than a simple format check by also returning the normalized form, area code, and associated Iranian city. Prefer it over generic phone validators when working with Persian-language or Iran-focused applications where city identification matters.

## Known failure modes

- Missing or empty `value` query parameter returns an error
- Non-landline numbers (e.g. mobile numbers starting with 09) may return valid:false
- Malformed or non-Iranian numbers return valid:false
- Numbers with unsupported area codes may not resolve a city even if structurally valid
- Payment failure via x402 results in 402 response before validation occurs

## 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

A JSON object containing: `valid` (boolean indicating if the number is a valid Iranian landline), `normalized` (standardized 11-digit format starting with 0), `areaCode` (e.g. '021' for Tehran), and `city` (the Persian/Farsi city name associated with the area code, e.g. 'تهران').

## 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",
     "required": [
      "value"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "landline in any common format"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "city": "تهران",
  "valid": true,
  "areaCode": "021",
  "normalized": "02112345678"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iranian-landline-number-validator-56bd4d86/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)
