{"uid":"cap_EXSy7oj_HBVkPQp0quA_w","slug":"irantools-detect-format-1a45bf94","name":"IranTools detect_format","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/detect_format?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["value"],"properties":{"value":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":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_4Ep7-Dt9NMRel5G7q-UFy","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":"Detects the format and encoding of a given string value (e.g. base64, hex, JSON, Persian text, etc.)","exampleAgentPrompt":"Can you detect what format or encoding this string is in: 'SGVsbG8gV29ybGQ='?","exampleUseCases":[{"title":"Identify encoding of unknown data blob","prompt":"I received this string '4pSM4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSQ' and have no idea what format or encoding it is — can you detect it for me?"},{"title":"Validate format before processing pipeline","prompt":"Before I pass this value 'eyJhbGciOiJIUzI1NiJ9' into my pipeline, can you tell me what format it's in so I know how to decode it?"},{"title":"Classify mixed-format user input","prompt":"A user submitted this text '0xDEADBEEF' to my form and I need to know whether it's hex-encoded, a literal string, or something else — can you detect the format?"}],"resultDescription":"Returns an object indicating the detected format and/or encoding of the input string, such as base64, hex, JSON, UTF-8, Persian script, or other recognized formats, along with relevant metadata about the detection.","failureModes":["Empty string input returns an error or ambiguous result","Very short strings may produce low-confidence or ambiguous format detection","Strings with mixed encodings may not be classified cleanly","Payment failure (402) if USDC balance is insufficient on Base","Malformed request body (missing 'value' field) returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need to programmatically detect the format or encoding of an arbitrary string value, especially in pipelines handling user-submitted data, Iranian/Persian text, or mixed-encoding scenarios. Prefer this over manual inspection or general-purpose libraries when you need a pay-per-call, no-signup solution that also handles Persian and Unicode edge cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:15.792Z","isFirstParty":false,"canonicalSlug":"irantools-detect-format-1a45bf94"}