{"uid":"cap_7U8FpnrrchUDUmxsBZCNV","slug":"farsi-tools-iran-city-lookup-7c9da390","name":"farsi-tools Iran City Lookup","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/iran-city?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","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"}}}}},"responseSchema":{"type":"json","example":{"city":"شیراز","found":true,"province":"فارس"}},"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_mmVQCmt2COQ_CkN_ehBKM","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":"Looks up an Iranian city by its Persian name and returns the city name and its associated province","exampleAgentPrompt":"Can you look up which province the Iranian city شیراز belongs to?","exampleUseCases":[{"title":"Validate Iranian city in a form","prompt":"I have a user-submitted Iranian city name اصفهان — can you check if it's a real city and tell me which province it's in?"},{"title":"Enrich an address record","prompt":"I have a database record with city name تبریز written in Persian — can you confirm it's valid and find its province so I can complete the address details?"},{"title":"Build Iran region selector","prompt":"What province does the Persian city name مشهد belong to? I need this to populate a region dropdown for Iranian users."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:38:09.153Z","isFirstParty":false,"canonicalSlug":"farsi-tools-iran-city-lookup-7c9da390"}