{"uid":"cap_Tq5GB40CA3vAgLQAdMHPL","slug":"text-statistics-analyzer-3cd9c1ef","name":"Text Statistics Analyzer","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/text/stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":250000}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lsE2GMS5dhE7FchwnXBZP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes statistical metrics (word count, character count, sentence count, readability scores, etc.) from a submitted text string","exampleAgentPrompt":"Can you analyze the statistics of this text — word count, character count, sentence count, and readability — for the following paragraph: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny day in the valley.'?","exampleUseCases":[{"title":"Readability check before publishing","prompt":"Before I publish this blog post draft, can you run it through text stats so I know the word count, sentence count, and how readable it is? Here's the text: 'Artificial intelligence is transforming industries at an unprecedented pace, enabling automation and smarter decision-making across sectors.'"},{"title":"Content length validation for SEO","prompt":"I need to check the stats on this article body — specifically word count and character count — to make sure it meets SEO minimums. Here's the content: 'Search engine optimization requires consistent effort and quality content creation to achieve meaningful organic traffic growth over time.'"},{"title":"Automated writing quality audit","prompt":"For my agent pipeline, can you compute text statistics — including sentence count and readability scores — for this user-submitted review text: 'The product exceeded my expectations in every way. Delivery was fast and packaging was excellent. I would highly recommend this to anyone.'?"}],"resultDescription":"Returns a JSON object with computed text statistics such as word count, character count, sentence count, paragraph count, average word length, average sentence length, and readability metrics (e.g. Flesch-Kincaid score) derived from the submitted text.","failureModes":["Text exceeds 250,000 character limit — request rejected with validation error","Empty or missing 'text' field in body — returns schema validation error","Payment not included or insufficient — x402 payment required error returned","Malformed JSON body — returns parse error","Network timeout on Railway deployment — transient 5xx error"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic text metrics (word count, character count, sentence count, readability) for a single text payload up to 250,000 characters, especially within machine-payable x402 micro-payment workflows where per-call pricing at $0.001 USDC is acceptable. Prefer this over heavyweight NLP APIs when you only need statistical measures rather than semantic understanding or entity extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:43:58.045Z","isFirstParty":false,"canonicalSlug":"text-statistics-analyzer-3cd9c1ef"}