{"openapi":"3.1.0","info":{"title":"farsi-tools","version":"2.0.0","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.","contact":{"email":"johnaio281@gmail.com"},"x-guidance":"farsi-tools is a Persian/Farsi + Iranian utility API for agents: normalize, transliterate, stats, digits, number-to-words, gregorian-to-jalali, jalali-to-gregorian, validate-national-id, validate-sheba, validate-mobile, keywords, sentences, similarity, strip-html, fix-rtl, validate-bank-card, validate-company-id, validate-economic-code, validate-postal-code, validate-landline, iran-province, iran-city, iran-provinces, iran-holidays, iran-holiday-check, amount-to-words, rial-toman. POST a JSON body to any route below. An unauthenticated call returns HTTP 402 with the USDC price and the receiving address; pay with any x402 client and retry. Text endpoints take {\"text\": \"...\"}; validators take {\"value\": \"...\"}; date conversion takes {year, month, day}; lookup endpoints take {\"name\": \"...\"} (a city or province in Persian); amount endpoints take {\"amount\": 125000, \"unit\": \"toman\"|\"rial\"}. Digits stay Persian by default — pass {\"options\":{\"digits\":\"ascii\"}} for 0-9. Max 100000 characters."},"servers":[{"url":"https://farsi-tools.johnaio281.workers.dev"}],"paths":{"/api/fa/normalize":{"post":{"summary":"Normalize Persian (Farsi) text: convert Arabic letter variants (ي, ك) to their Persian forms, unify ZWNJ and spacing, and map Arabic-Indic digits to Persian digits. Use it before indexing, searching or comparing Persian text so that lookalike spellings match. Returns the normalized string.","description":"Normalize Persian (Farsi) text: convert Arabic letter variants (ي, ك) to their Persian forms, unify ZWNJ and spacing, and map Arabic-Indic digits to Persian digits. Use it before indexing, searching or comparing Persian text so that lookalike spellings match. Returns the normalized string.","operationId":"normalize","tags":["Persian text"],"x-payment-info":{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.010000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.010000","offers":[{"method":"tempo","intent":"charge","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/transliterate":{"post":{"summary":"Transliterate Persian, Dari or Arabic script into Latin letters, optionally as a URL slug. Use it to index Persian text in a Latin-keyword search engine, to build slugs for Persian titles, or to render Persian names in a Latin-only system. Returns the Latin transliteration and, when asked, the slug.","description":"Transliterate Persian, Dari or Arabic script into Latin letters, optionally as a URL slug. Use it to index Persian text in a Latin-keyword search engine, to build slugs for Persian titles, or to render Persian names in a Latin-only system. Returns the Latin transliteration and, when asked, the slug.","operationId":"transliterate","tags":["Persian text"],"x-payment-info":{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.010000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.010000","offers":[{"method":"tempo","intent":"charge","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"},"slug":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/stats":{"post":{"summary":"Measure Persian text: character count, word count, line count and the number of ZWNJ half-space characters. Use it to size a Persian document, enforce a length limit, or report text statistics for Persian content. Returns a stats object.","description":"Measure Persian text: character count, word count, line count and the number of ZWNJ half-space characters. Use it to size a Persian document, enforce a length limit, or report text statistics for Persian content. Returns a stats object.","operationId":"stats","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/digits":{"post":{"summary":"Convert the digits inside a string between Persian (۰-۹), Arabic-Indic (٠-٩) and ASCII (0-9) numeral systems, leaving the rest of the text untouched. Use it to make Persian text machine-readable or to render an ASCII number in Persian script. Returns the converted string.","description":"Convert the digits inside a string between Persian (۰-۹), Arabic-Indic (٠-٩) and ASCII (0-9) numeral systems, leaving the rest of the text untouched. Use it to make Persian text machine-readable or to render an ASCII number in Persian script. Returns the converted string.","operationId":"digits","tags":["Numbers & dates"],"x-payment-info":{"amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.003000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.003000","offers":[{"method":"tempo","intent":"charge","amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"3000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"text containing digits"},"to":{"type":"string","enum":["ascii","persian"]}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/number-to-words":{"post":{"summary":"Write an integer out in Persian words (عدد به حروف), for example 1234 as هزار و دویست و سی و چهار. Use it for Persian invoices, cheque amounts, legal and official forms, and display. Returns the number spelled in Persian words.","description":"Write an integer out in Persian words (عدد به حروف), for example 1234 as هزار و دویست و سی و چهار. Use it for Persian invoices, cheque amounts, legal and official forms, and display. Returns the number spelled in Persian words.","operationId":"numberToWords","tags":["Numbers & dates"],"x-payment-info":{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.010000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.010000","offers":[{"method":"tempo","intent":"charge","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["number"],"properties":{"number":{"type":["integer","string"],"description":"integer, string digits, commas or Persian digits"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/gregorian-to-jalali":{"post":{"summary":"Convert a Gregorian (ISO, Western) calendar date to the Jalali, Solar Hijri, Persian or Shamsi calendar used in Iran. Use it to display a date to Iranian users, to schedule work in the Iranian calendar, or to convert a Gregorian deadline into a Jalali date. Returns the Jalali year, month, day and month name.","description":"Convert a Gregorian (ISO, Western) calendar date to the Jalali, Solar Hijri, Persian or Shamsi calendar used in Iran. Use it to display a date to Iranian users, to schedule work in the Iranian calendar, or to convert a Gregorian deadline into a Jalali date. Returns the Jalali year, month, day and month name.","operationId":"gregorianToJalali","tags":["Numbers & dates"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["year","month","day"],"properties":{"year":{"type":"integer"},"month":{"type":"integer","minimum":1,"maximum":12},"day":{"type":"integer","minimum":1,"maximum":31}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/jalali-to-gregorian":{"post":{"summary":"Convert a Jalali (Solar Hijri, Persian, Shamsi) calendar date to the Gregorian calendar. Use it to turn a date written in the Iranian calendar back into an ISO 8601 date, to check whether a Jalali date is today, or to compare an Iranian deadline with a Western one. Returns the Gregorian year, month, day and weekday.","description":"Convert a Jalali (Solar Hijri, Persian, Shamsi) calendar date to the Gregorian calendar. Use it to turn a date written in the Iranian calendar back into an ISO 8601 date, to check whether a Jalali date is today, or to compare an Iranian deadline with a Western one. Returns the Gregorian year, month, day and weekday.","operationId":"jalaliToGregorian","tags":["Numbers & dates"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["year","month","day"],"properties":{"year":{"type":"integer"},"month":{"type":"integer","minimum":1,"maximum":12},"day":{"type":"integer","minimum":1,"maximum":31}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-national-id":{"post":{"summary":"Validate an Iranian national ID (کد ملی, code melli) by recomputing its check digit. Use it before accepting an identity number from a form, a customer, or an API payload. Returns whether the number is valid, and the parsed digits.","description":"Validate an Iranian national ID (کد ملی, code melli) by recomputing its check digit. Use it before accepting an identity number from a form, a customer, or an API payload. Returns whether the number is valid, and the parsed digits.","operationId":"validateNationalId","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"10-digit national ID"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-sheba":{"post":{"summary":"Validate an Iranian IBAN, called Sheba (شبا), with the ISO 13616 mod-97 check, and return the bank code. Use it before sending or crediting an Iranian bank transfer. Returns validity, the normalized IBAN and the bank identifier.","description":"Validate an Iranian IBAN, called Sheba (شبا), with the ISO 13616 mod-97 check, and return the bank code. Use it before sending or crediting an Iranian bank transfer. Returns validity, the normalized IBAN and the bank identifier.","operationId":"validateSheba","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"IR + 24 digits"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-mobile":{"post":{"summary":"Validate and normalize an Iranian mobile phone number, checking the operator prefix (MCI, Irancell, Rightel, Shatel) and the national format 09xxxxxxxxx. Use it to verify a phone number on a sign-up form or before sending an SMS. Returns validity, the normalized number and the operator.","description":"Validate and normalize an Iranian mobile phone number, checking the operator prefix (MCI, Irancell, Rightel, Shatel) and the national format 09xxxxxxxxx. Use it to verify a phone number on a sign-up form or before sending an SMS. Returns validity, the normalized number and the operator.","operationId":"validateMobile","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"mobile in any common format"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/keywords":{"post":{"summary":"Extract the frequent keywords from Persian text, filtering Persian and English stopwords and ranking by frequency. Use it to build a search index, an automatic tag list, or a topic summary for a Persian document. Returns the ranked keywords.","description":"Extract the frequent keywords from Persian text, filtering Persian and English stopwords and ranking by frequency. Use it to build a search index, an automatic tag list, or a topic summary for a Persian document. Returns the ranked keywords.","operationId":"keywords","tags":["Persian text"],"x-payment-info":{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.010000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.010000","offers":[{"method":"tempo","intent":"charge","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"},"limit":{"type":"integer","minimum":1,"maximum":50}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/sentences":{"post":{"summary":"Split Persian text into sentences, handling the Persian question mark ؟, the exclamation mark, ellipsis … and abbreviation boundaries. Use it to chunk Persian text for summarization, translation or per-sentence processing. Returns the list of sentences.","description":"Split Persian text into sentences, handling the Persian question mark ؟, the exclamation mark, ellipsis … and abbreviation boundaries. Use it to chunk Persian text for summarization, translation or per-sentence processing. Returns the list of sentences.","operationId":"sentences","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/similarity":{"post":{"summary":"Measure the similarity of two Persian strings as a trigram Jaccard score from 0 to 1. Use it to detect near-duplicate Persian text, deduplicate a corpus, or rank one Persian string against another. Returns the similarity score.","description":"Measure the similarity of two Persian strings as a trigram Jaccard score from 0 to 1. Use it to detect near-duplicate Persian text, deduplicate a corpus, or rank one Persian string against another. Returns the similarity score.","operationId":"similarity","tags":["Persian text"],"x-payment-info":{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.010000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.010000","offers":[{"method":"tempo","intent":"charge","amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","description":"first string"},"b":{"type":"string","description":"second string"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/strip-html":{"post":{"summary":"Strip HTML tags and decode HTML entities out of a string, leaving the readable text behind. Use it to clean web pages or scraped content before feeding it to an agent or an index. Returns the plain text.","description":"Strip HTML tags and decode HTML entities out of a string, leaving the readable text behind. Use it to clean web pages or scraped content before feeding it to an agent or an index. Returns the plain text.","operationId":"stripHtml","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/fix-rtl":{"post":{"summary":"Remove Unicode bidi control characters and repair the spacing around right-to-left punctuation. Use it to clean Persian or Arabic text that renders in the wrong order or shows stray markers. Returns the cleaned string.","description":"Remove Unicode bidi control characters and repair the spacing around right-to-left punctuation. Use it to clean Persian or Arabic text that renders in the wrong order or shows stray markers. Returns the cleaned string.","operationId":"fixRtl","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-bank-card":{"post":{"summary":"Validate an Iranian bank card number, called a PAN (کارت بانکی), with the Luhn check digit, and return the issuing bank. Use it before charging a card or accepting card details from a customer. Returns validity, the masked number and the bank name.","description":"Validate an Iranian bank card number, called a PAN (کارت بانکی), with the Luhn check digit, and return the issuing bank. Use it before charging a card or accepting card details from a customer. Returns validity, the masked number and the bank name.","operationId":"validateBankCard","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"16-digit Iranian bank card number"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-company-id":{"post":{"summary":"Validate an Iranian company national ID (شناسه ملی اشخاص حقوقی, the 11-digit legal-entity identifier) by recomputing its check digit. Use it when onboarding a business customer or validating an Iranian legal entity. Returns validity and the parsed digits.","description":"Validate an Iranian company national ID (شناسه ملی اشخاص حقوقی, the 11-digit legal-entity identifier) by recomputing its check digit. Use it when onboarding a business customer or validating an Iranian legal entity. Returns validity and the parsed digits.","operationId":"validateCompanyId","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"11-digit legal-entity national ID"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-economic-code":{"post":{"summary":"Validate an Iranian economic code (کد اقتصادی, the 12-digit taxpayer identifier) by recomputing its check digit. Use it when validating the tax identifier on an Iranian invoice or a supplier record. Returns validity and the parsed digits.","description":"Validate an Iranian economic code (کد اقتصادی, the 12-digit taxpayer identifier) by recomputing its check digit. Use it when validating the tax identifier on an Iranian invoice or a supplier record. Returns validity and the parsed digits.","operationId":"validateEconomicCode","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"12-digit economic code"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-postal-code":{"post":{"summary":"Validate an Iranian postal code (کد پستی, the 10-digit code) by recomputing its check digit. Use it before using a postal code for delivery or address validation. Returns validity, the normalized code and its province.","description":"Validate an Iranian postal code (کد پستی, the 10-digit code) by recomputing its check digit. Use it before using a postal code for delivery or address validation. Returns validity, the normalized code and its province.","operationId":"validatePostalCode","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"10-digit postal code"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/validate-landline":{"post":{"summary":"Validate and normalize an Iranian landline number with its area code (021 for Tehran and so on) and resolve that area code to a city. Use it to verify a fixed-line contact or to route a support request to the right region. Returns validity, the normalized number, the area code and the city.","description":"Validate and normalize an Iranian landline number with its area code (021 for Tehran and so on) and resolve that area code to a city. Use it to verify a fixed-line contact or to route a support request to the right region. Returns validity, the normalized number, the area code and the city.","operationId":"validateLandline","tags":["Iranian validators"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"landline in any common format"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/iran-province":{"post":{"summary":"Look up an Iranian province by its Persian name and return its capital and major cities. Use it to resolve a province in an address, to attach geographic context to a user, or to normalize a location field. Returns the province, its capital and its cities.","description":"Look up an Iranian province by its Persian name and return its capital and major cities. Use it to resolve a province in an address, to attach geographic context to a user, or to normalize a location field. Returns the province, its capital and its cities.","operationId":"iranProvince","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"province name in Persian"},"text":{"type":"string","description":"alias for name"},"value":{"type":"string","description":"alias for name"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/iran-city":{"post":{"summary":"Look up an Iranian city by its Persian name and return the province it belongs to. Use it to resolve a city in an address or to group a location by region. Returns the city and its province.","description":"Look up an Iranian city by its Persian name and return the province it belongs to. Use it to resolve a city in an address or to group a location by region. Returns the city and its province.","operationId":"iranCity","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"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"}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/iran-provinces":{"post":{"summary":"List all 31 Iranian provinces with their capitals and major cities. Use it to populate a province dropdown, to build a location picker, or to validate a region name. Returns every province.","description":"List all 31 Iranian provinces with their capitals and major cities. Use it to populate a province dropdown, to build a location picker, or to validate a region name. Returns every province.","operationId":"iranProvinces","tags":["Persian text"],"x-payment-info":{"amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.003000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.003000","offers":[{"method":"tempo","intent":"charge","amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"3000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/iran-holidays":{"post":{"summary":"Return the official Iranian public holidays for a Jalali (Solar Hijri) year, with each holiday's Gregorian date and name. Use it to plan delivery or support schedules around Iranian holidays, or to flag non-working days. Returns the holiday list.","description":"Return the official Iranian public holidays for a Jalali (Solar Hijri) year, with each holiday's Gregorian date and name. Use it to plan delivery or support schedules around Iranian holidays, or to flag non-working days. Returns the holiday list.","operationId":"iranHolidays","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["year"],"properties":{"year":{"type":"integer","minimum":1300,"maximum":1500}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/iran-holiday-check":{"post":{"summary":"Check whether a given Jalali (Solar Hijri) date is an Iranian public holiday and return the holiday's name if it is. Use it before booking, scheduling or sending a deadline-sensitive action on an Iranian working day. Returns whether it is a holiday and which one.","description":"Check whether a given Jalali (Solar Hijri) date is an Iranian public holiday and return the holiday's name if it is. Use it before booking, scheduling or sending a deadline-sensitive action on an Iranian working day. Returns whether it is a holiday and which one.","operationId":"iranHolidayCheck","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["year","month","day"],"properties":{"year":{"type":"integer"},"month":{"type":"integer","minimum":1,"maximum":12},"day":{"type":"integer","minimum":1,"maximum":31}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/amount-to-words":{"post":{"summary":"Write an amount of Iranian rial or toman out in Persian words (مبلغ به حروف), as required on Iranian cheques, invoices and contracts. Use it to render a payable amount for a Persian-speaking payer. Returns the amount spelled in Persian words with its unit.","description":"Write an amount of Iranian rial or toman out in Persian words (مبلغ به حروف), as required on Iranian cheques, invoices and contracts. Use it to render a payable amount for a Persian-speaking payer. Returns the amount spelled in Persian words with its unit.","operationId":"amountToWords","tags":["Persian text"],"x-payment-info":{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.005000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.005000","offers":[{"method":"tempo","intent":"charge","amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount"],"properties":{"amount":{"type":["number","string"]},"number":{"type":["number","string"]},"unit":{"type":"string","enum":["toman","rial"]}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/rial-toman":{"post":{"summary":"Convert an amount between Iranian rial and toman, where 1 toman equals 10 rial. Use it when a price is given in one unit and must be shown or billed in the other. Returns the converted amount.","description":"Convert an amount between Iranian rial and toman, where 1 toman equals 10 rial. Use it when a price is given in one unit and must be shown or billed in the other. Returns the converted amount.","operationId":"rialToman","tags":["Persian text"],"x-payment-info":{"amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","description":"$0.003000 USD per call","protocols":["x402","mpp"],"pricingMode":"fixed","price":"0.003000","offers":[{"method":"tempo","intent":"charge","amount":"3000","currency":"0x20C000000000000000000000b9537d11c60E8b50","chainId":4217},{"method":"evm","intent":"charge","amount":"3000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount"],"properties":{"amount":{"type":["number","string"]},"number":{"type":["number","string"]},"unit":{"type":"string","enum":["rial","toman"]}}}}}},"responses":{"200":{"description":"OK"},"402":{"description":"Payment Required"}}}},"/api/fa/cleanup-50":{"post":{"summary":"Clean a Persian/Arabic CSV, TSV or text file of up to 50 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","description":"Clean a Persian/Arabic CSV, TSV or text file of up to 50 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","operationId":"cleanup-50","tags":["File cleanup"],"x-payment-info":{"amount":"900000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","intent":"charge","method":"evm","description":"$0.90 per delivered file, not per row","protocols":["x402"],"pricingMode":"flat-per-file","price":"0.90","offers":[{"method":"evm","intent":"charge","amount":"900000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["filename","content_b64"],"properties":{"filename":{"type":"string","description":"Original file name. The extension selects the format: .csv, .tsv, .txt, .md. Max 5 MB decoded."},"content_b64":{"type":"string","description":"The file bytes, base64 encoded. Max 5 MB decoded (about 6.7 MB on the wire)."},"options":{"type":"object","description":"Optional: {\"digits\":\"ascii\"|\"persian\"|\"keep\",\"transliterate\":true}. digits defaults to \"ascii\"; transliterate appends a Latin column."}}}}}},"responses":{"200":{"description":"The cleaned file, base64 encoded, with a job id."},"402":{"description":"Payment Required"},"413":{"description":"File too large or too many rows for this tier"}}}},"/api/fa/cleanup-500":{"post":{"summary":"Clean a Persian/Arabic CSV, TSV or text file of up to 500 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","description":"Clean a Persian/Arabic CSV, TSV or text file of up to 500 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","operationId":"cleanup-500","tags":["File cleanup"],"x-payment-info":{"amount":"9000000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","intent":"charge","method":"evm","description":"$9 per delivered file, not per row","protocols":["x402"],"pricingMode":"flat-per-file","price":"9","offers":[{"method":"evm","intent":"charge","amount":"9000000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["filename","content_b64"],"properties":{"filename":{"type":"string","description":"Original file name. The extension selects the format: .csv, .tsv, .txt, .md. Max 5 MB decoded."},"content_b64":{"type":"string","description":"The file bytes, base64 encoded. Max 5 MB decoded (about 6.7 MB on the wire)."},"options":{"type":"object","description":"Optional: {\"digits\":\"ascii\"|\"persian\"|\"keep\",\"transliterate\":true}. digits defaults to \"ascii\"; transliterate appends a Latin column."}}}}}},"responses":{"200":{"description":"The cleaned file, base64 encoded, with a job id."},"402":{"description":"Payment Required"},"413":{"description":"File too large or too many rows for this tier"}}}},"/api/fa/cleanup-5000":{"post":{"summary":"Clean a Persian/Arabic CSV, TSV or text file of up to 5000 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","description":"Clean a Persian/Arabic CSV, TSV or text file of up to 5000 rows and get the normalized file back. One flat price for the whole file, not per row: Arabic yeh and kaf become their Persian forms, the ZWNJ half-space is normalised, digits are unified to ASCII, and whitespace and line endings are cleaned. Optionally appends a Latin transliteration column. Send the file base64-encoded in content_b64; the file never leaves this worker's origin beyond the payment check.","operationId":"cleanup-5000","tags":["File cleanup"],"x-payment-info":{"amount":"25000000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","intent":"charge","method":"evm","description":"$25 per delivered file, not per row","protocols":["x402"],"pricingMode":"flat-per-file","price":"25","offers":[{"method":"evm","intent":"charge","amount":"25000000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chainId":8453}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["filename","content_b64"],"properties":{"filename":{"type":"string","description":"Original file name. The extension selects the format: .csv, .tsv, .txt, .md. Max 5 MB decoded."},"content_b64":{"type":"string","description":"The file bytes, base64 encoded. Max 5 MB decoded (about 6.7 MB on the wire)."},"options":{"type":"object","description":"Optional: {\"digits\":\"ascii\"|\"persian\"|\"keep\",\"transliterate\":true}. digits defaults to \"ascii\"; transliterate appends a Latin column."}}}}}},"responses":{"200":{"description":"The cleaned file, base64 encoded, with a job id."},"402":{"description":"Payment Required"},"413":{"description":"File too large or too many rows for this tier"}}}}}}