{"uid":"cap_74t3WqWqBwetbzBVXFaqA","slug":"agent402-tools-text-statistics-analyzer-0bf811bb","name":"agent402.tools Text Statistics Analyzer","description":"Characters, words, sentences, paragraphs, average word length, reading time, and an LLM token estimate for any text.","url":"https://agent402.tools/api/text-stats","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to analyze (max 500KB)"}}},"responseSchema":{"type":"json","example":{"words":65,"sentences":4,"characters":386,"paragraphs":1,"avgWordLength":4.95,"estimatedTokens":97,"readingTimeMinutes":0.3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.7","state":"rated"},"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_FHSjUp6RJpOgQiOiL7Pe9","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 block of text and returns character count, word count, sentence count, paragraph count, average word length, reading time, and an LLM token estimate.","exampleAgentPrompt":"Can you analyze this article text and tell me the word count, character count, number of sentences and paragraphs, average word length, estimated reading time, and how many LLM tokens it would use? Here's the text: [paste text here]","exampleUseCases":null,"resultDescription":"Returns a JSON object with character count, word count, sentence count, paragraph count, average word length, estimated reading time (likely in minutes), and an estimated LLM token count for the submitted text.","failureModes":["Text exceeds 500KB limit — request rejected","Empty text field — returns zero or error","Malformed JSON body — 400 error","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost breakdown of text statistics including LLM token estimates — especially useful before sending large texts to LLM APIs to estimate cost, or when validating document length against limits. Prefer this over manual counting or client-side estimation when accuracy and token estimation matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-29T20:20:45.009Z","lastSuccessfullyRanAt":"2026-07-29T20:20:45.009Z","lastHealthCheckAt":"2026-09-14T19:14:06.182Z","isFirstParty":false}