{"uid":"cap_A2AeHov2y13w0QCiDbsi6","slug":"textkit-string-format-detector-e61b0e04","name":"textkit String Format Detector","description":"General-purpose text, Unicode and date utilities for AI agents: homoglyph folding and spoofed-domain detection, Unicode script detection, NFC/NFD normalization, grapheme counting, date description (weekday, ISO week, quarter, leap year), business-day counting, slugify, FNV-1a hashing, Shannon entropy, string format detection (uuid, email, url, ipv4, jwt, iban), byte-encoding detection and human-readable byte sizes. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.","url":"https://textkit.johnaio281.workers.dev/api/tk/detect-format?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"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"valid":true,"format":"uuid"}},"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_58zNY5eoDEPerLiUkL4ml","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 string format of a given value, identifying whether it is a UUID, email, URL, IPv4 address, JWT, or IBAN","exampleAgentPrompt":"Can you detect the format of this string for me — is '550e8400-e29b-41d4-a716-446655440000' a UUID, email, URL, IPv4, JWT, or IBAN?","exampleUseCases":[{"title":"Validate user-submitted identifier type","prompt":"I'm getting a string '2001:0db8:85a3::8a2e:0370:7334' from a form submission and I need to know if it's a valid IPv4 address, UUID, or some other recognized format before I process it."},{"title":"Detect JWT token in pipeline","prompt":"Can you check whether this string is a valid JWT: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.dozjgNryP4J3jVmNHl0w5N_XgL0n3I9PlFUP0THsR8U'?"},{"title":"Identify IBAN in extracted text","prompt":"I pulled this string out of a document: 'GB29NWBK60161331926819' — can you tell me if that's an IBAN or some other format?"}],"resultDescription":"A JSON object with a 'valid' boolean indicating whether the input matches a recognized format, and a 'format' string naming the detected format (e.g. 'uuid', 'email', 'url', 'ipv4', 'jwt', 'iban').","failureModes":["Missing 'value' query parameter returns an error","Ambiguous strings that match no known format may return valid:false with no format","Malformed input might return an unexpected format classification","Payment failure via x402 if wallet has insufficient USDC on Base"],"whenToPreferThis":"Use this endpoint when you need lightweight, instant format classification of a string value without setting up authentication or API keys. Ideal for AI agents that need to route or validate user-submitted data on the fly. Particularly useful for detecting IBANs, JWTs, or UUIDs which are less commonly supported by generic validators. At $0.005 per call it's cost-effective for occasional validation tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:03.111Z","isFirstParty":false,"canonicalSlug":"textkit-string-format-detector-e61b0e04"}