{"uid":"cap_h8at8zS2j_7UPMFWS7tMK","slug":"text-statistics-counter-24c77cad","name":"Text Statistics Counter","description":"Word, character, sentence and line counts for text","url":"https://x402render-u5vwpxpyua-uc.a.run.app/text-stats","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"string"}}},"responseSchema":null,"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_hs9L-tsBxsXFql979UI_f","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":"Returns word, character, sentence, and line counts for a given text string","exampleAgentPrompt":"How many words, characters, sentences, and lines are in this text: 'The quick brown fox jumps over the lazy dog. It was a bright and sunny day.'?","exampleUseCases":[{"title":"Essay length validation","prompt":"I need to check if this essay excerpt is within the 500-word limit — can you count the words, characters, and sentences in it? Here's the text: 'Climate change represents one of the most pressing challenges of our era...'"},{"title":"Blog post readability check","prompt":"Count the words and sentences in this blog intro so I can check the average sentence length: 'Artificial intelligence is transforming how we work and live. Every industry is being reshaped by machine learning and automation. The pace of change has never been faster.'"},{"title":"Content moderation character audit","prompt":"Give me the full text stats — words, characters, sentences, and lines — for this user-submitted bio: 'Hi, I'm Alex. I love hiking, cooking, and exploring new cities. I work in tech and am always looking for the next adventure.'"}],"resultDescription":"Returns numeric counts for the input text across four dimensions: total word count, total character count (likely including and/or excluding spaces), total sentence count, and total line count. These metrics allow agents to measure text length, validate content limits, and analyze document structure.","failureModes":["Empty or missing 'text' field returns an error or zero counts","Very large text payloads may be rejected or time out","Non-string input types may cause schema validation errors","Payment failure (HTTP 402) if USDC payment is not correctly provided"],"whenToPreferThis":"Choose this endpoint when you need multiple text metrics in a single call — word, character, sentence, and line counts simultaneously — rather than calculating them client-side or calling separate endpoints. Especially useful when the agent needs to validate content against length constraints or analyze text structure across multiple dimensions at once.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:08.356Z","isFirstParty":false}