{"uid":"cap__EGtsgmLg_v5k9NVFtqU5","slug":"whatchuneed-text-stats-f3f02230","name":"whatchuneed Text Stats","description":"320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.","url":"https://whatchuneed.vercel.app/api/util/text-stats","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Request input"}}},"responseSchema":{"type":"object","properties":{"result":{"type":"object","description":"Response data"},"status":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_d6aHm0e6LJP0DsU8OU7mE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","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.) for a given text input","exampleAgentPrompt":"Can you run text stats on this paragraph for me? 'The quick brown fox jumps over the lazy dog. It was a sunny day in the meadow.' I want to know the word count, character count, sentence count, and readability score.","exampleUseCases":[{"title":"Readability check for blog post","prompt":"Can you analyze this article introduction for me and tell me the word count, sentence count, and readability score? 'Artificial intelligence is transforming every industry at an unprecedented pace. Companies large and small are adopting machine learning to automate decisions and unlock new efficiencies.'"},{"title":"Content length validation for SEO","prompt":"I need to check the text stats on my meta description to make sure it's the right length — here it is: 'Buy handmade leather wallets crafted by artisans in Florence, Italy. Free shipping on orders over $50.' Give me the character count and word count."},{"title":"Academic writing complexity analysis","prompt":"Can you compute the text statistics for this thesis abstract and tell me the readability score, word count, and sentence count? 'This study examines the causal relationship between social media usage and adolescent mental health outcomes using longitudinal panel data from 2015 to 2022.'"}],"resultDescription":"Returns a result object containing computed text statistics such as word count, character count, sentence count, average word length, readability scores (e.g. Flesch-Kincaid), and potentially other linguistic metrics derived from the input text, along with a status field indicating success or failure.","failureModes":["Empty or missing input field returns an error","Extremely long text inputs may time out or be truncated","Non-string input types may cause a validation error","Payment failure via x402 protocol results in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need quick, pay-per-call text statistics without setting up a dedicated NLP library or service. It is ideal for lightweight analysis tasks like word count, readability scoring, or sentence counting on arbitrary text, especially within an agent workflow that already uses the x402 payment protocol and whatchuneed API ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:39:07.592Z","isFirstParty":false}