{"uid":"cap_k68Jk0fnN0KMTWGHkvEhM","slug":"24k-labs-text-stats-api-fecf0bd8","name":"24K Labs Text Stats API","description":"Character, word, sentence, paragraph counts, average word length, and reading time.","url":"https://api.24klabs.ai/api/v1/text-stats","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"words":6,"characters":28}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_SJdCXldAVUMQ4QhNUuhen","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a text string and returns character count, word count, sentence count, paragraph count, average word length, and estimated reading time.","exampleAgentPrompt":"Can you give me the full text stats for this blog post — word count, character count, sentence and paragraph counts, average word length, and reading time? Here's the text: 'Content marketing is evolving rapidly. Brands that invest in quality writing see measurable results. The data speaks for itself.'","exampleUseCases":[{"title":"Blog post length check","prompt":"Before I publish this article, can you tell me the word count, character count, and estimated reading time? Here's the full text: 'The rise of AI writing tools has transformed content creation. Writers now collaborate with machines to produce faster, richer content at scale. But authenticity still matters more than ever.'"},{"title":"Essay word count verification","prompt":"I need to make sure my essay is within the 500-word limit — can you count the words and sentences in this text and tell me if I'm over? 'Innovation drives economic growth. Without investment in research, nations stagnate. The evidence from the past century is overwhelming: countries that prioritize science outperform those that do not. We must act now.'"},{"title":"Newsletter readability audit","prompt":"Can you run text stats on this newsletter draft and tell me the paragraph count, average word length, and how long it'll take an average person to read it? 'Welcome to our monthly update. This month we shipped three major features, hired two new engineers, and hit a new revenue milestone. We're proud of the team's hard work and can't wait to share what's coming next.'"}],"resultDescription":"Returns a JSON object with numeric values for character count, word count, sentence count, paragraph count, average word length (likely as a float), and estimated reading time (likely in minutes or seconds). All stats are computed from the submitted text.","failureModes":["Empty or missing text body returns an error","Extremely large text inputs may be rejected or time out","Non-UTF-8 encoded content may cause parsing errors","Malformed request body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need quick, precise text metrics — especially word count, reading time, and structural breakdown (sentences, paragraphs) — without invoking a full NLP or AI model. It's ideal for content pipelines, CMS integrations, or writing assistants where lightweight, deterministic stats are sufficient and cost matters ($0.001/call via x402).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:52:13.400Z","isFirstParty":false}