{"uid":"cap_SwZQPOP8J6ZOmXziG7zp4","slug":"x402-utility-tools-text-stats-ca85fb02","name":"x402 Utility Tools – Text Stats","description":"A compact x402 utility surface for agents that need cheap, repeatable non-LLM transformations before spending on heavier routes: CSV cleanup, JSON Schema checks, timestamp conversion, JWT decode, URL normalization, hashes, codecs, and text utilities.","url":"https://x402-utils.558686.xyz/v1/tools/text-stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"text-stats","input":{"text":"one two\nthree"},"route":"/v1/tools/text-stats","result":{"bytes":1,"lines":[],"words":"words_example","characters":"characters_example","readingTimeMinutes":1},"project":"x402-utility-tools","deterministic":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K6WjdIbFT430Ux5LZSX79","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes character, word, line, byte counts, and estimated reading time for a given input string","exampleAgentPrompt":"Can you tell me the word count, character count, line count, and estimated reading time for this text: 'The quick brown fox jumps over the lazy dog. It was a sunny afternoon.'?","exampleUseCases":[{"title":"Blog post readability check","prompt":"Before I publish this draft, can you tell me how many words, characters, and lines it has, and roughly how long it will take to read? Here's the full text: 'In a world driven by data, understanding your audience is more important than ever...'"},{"title":"Form field character limit audit","prompt":"I need to know the exact character and byte count for this user-submitted bio to make sure it fits our 500-character limit: 'Hi, I'm Alex, a software engineer based in Seattle with a passion for open-source projects and hiking.'"},{"title":"Content pipeline word count QA","prompt":"For each piece of content coming through our pipeline, I need the word count, line count, and reading time — start with this one: 'Artificial intelligence is transforming industries at an unprecedented pace, bringing both opportunities and challenges to businesses worldwide.'"}],"resultDescription":"Returns a JSON object with ok=true, the tool name, the original input, and a result object containing byte count, line array, word count, character count, and estimated reading time in minutes. All fields are deterministically computed with no LLM involvement.","failureModes":["Missing or empty 'text' field returns an error response","Extremely large text payloads may be rejected or time out","Non-string values for 'text' may cause validation errors","Network or payment authorization failures return HTTP 402"],"whenToPreferThis":"Choose this endpoint when you need fast, cheap, deterministic text metrics (word count, character count, byte size, line count, reading time) without the cost or latency of an LLM. Ideal for content pipelines, form validation, editorial tools, or any workflow where text measurement is a high-frequency, low-cost preprocessing step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T19:26:16.513Z","isFirstParty":false,"canonicalSlug":"x402-utility-tools-text-stats-ca85fb02"}