{"uid":"cap_w7RcHTC2XvI7D4JVQquS9","slug":"farsi-national-id-validator-1bc03702","name":"Farsi National ID Validator","description":"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.","url":"https://farsi-tools.johnaio281.workers.dev/api/fa/validate-national-id?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":"10-digit national ID"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"valid":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3qnGNKwWMKh7HkP649MfJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a 10-digit Iranian national ID (کد ملی) is mathematically valid","exampleAgentPrompt":"Can you check whether the Iranian national ID 1234567891 is valid?","exampleUseCases":[{"title":"KYC onboarding for Iranian users","prompt":"I need to verify that the national ID a new Iranian user submitted during signup is valid — the ID is 0023456789, can you check it?"},{"title":"Form validation before submission","prompt":"Before I submit this registration form, can you confirm that the کد ملی 3870253735 is a properly valid Iranian national ID?"},{"title":"Fraud screening on Iranian ID field","prompt":"We received an order where the customer entered 1111111111 as their national ID — can you tell me if that's a valid Iranian national identification number or likely fake?"}],"resultDescription":"Returns a JSON object with a single boolean field `valid` indicating whether the supplied 10-digit Iranian national ID passes the official checksum algorithm (true = valid, false = invalid).","failureModes":["Missing or malformed `value` query parameter returns an error","Non-numeric or fewer/more than 10 digits may return valid=false or a validation error","Payment failure via x402 if USDC balance is insufficient or wallet not configured","Network timeouts on the Cloudflare Workers edge"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call check on Iranian national ID numbers (کد ملی) without standing up your own checksum logic. It is especially suitable for KYC pipelines, form validation, and fraud screening where you want a simple true/false validity answer for individual IDs at minimal cost ($0.005 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:49.420Z","isFirstParty":false,"canonicalSlug":"farsi-national-id-validator-1bc03702"}