{"uid":"cap_UVDVkRwptT4bVJPQ10AY9","slug":"agentshelf-text-statistics-de630c33","name":"AgentShelf Text Statistics","description":"Call when an agent needs heuristic text stats: chars, words, sentences, reading_time_min, lang_hint. No LLM and no network. Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/text-stats first.","url":"https://agentshelf.syntexa.ch/v1/text-stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Hello world. This is a short English paragraph for AgentShelf."],"maxLength":100000,"minLength":0,"description":"Plain text to measure. No HTML parsing and no network."}}},"responseSchema":null,"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_dN3NN1hwyJntG7eRYf0n6","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":"Computes heuristic text statistics (character count, word count, sentence count, reading time, language hint) from a given string — no LLM or network required.","exampleAgentPrompt":"Can you give me the word count, sentence count, character count, estimated reading time, and language hint for this text: 'Artificial intelligence is transforming industries at an unprecedented pace, reshaping how we work, communicate, and solve complex problems.'?","exampleUseCases":[{"title":"Blog post readability check","prompt":"Before I publish this article, can you tell me how many words, sentences, and characters it has, and how long it would take the average person to read it? Here's the text: 'The future of renewable energy hinges on advances in battery storage technology...'"},{"title":"Language detection for user input","prompt":"I have this snippet of user-submitted text and I need a quick language hint along with its word and character count — can you run text stats on it? The text is: 'La inteligencia artificial está cambiando el mundo de maneras que nunca imaginamos.'"},{"title":"Content length enforcement for a form field","prompt":"This is the description a user typed into our form: 'We are a small family-owned bakery specializing in artisan sourdough breads and pastries.' Can you check how many characters and words that is so I know if it fits within our display limits?"}],"resultDescription":"Returns a JSON object containing: chars (integer character count), words (integer word count), sentences (integer sentence count), reading_time_min (float estimated minutes to read at average reading speed), and lang_hint (string ISO language code or short label indicating the detected language).","failureModes":["Text exceeds 100,000 character limit — request rejected with a 4xx validation error","Empty or whitespace-only text may yield zero counts and an ambiguous lang_hint","Highly mixed-language text may produce an unreliable or generic lang_hint","Payment failure or insufficient USDC balance returns a 402 Payment Required error"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, offline-computable text metrics (word count, character count, sentence count, reading time, language hint) without incurring LLM inference costs or network latency. Ideal for lightweight content validation, readability checks, and preprocessing pipelines where accuracy of a statistical heuristic is sufficient and privacy matters (no text leaves the local compute context). Use the free sandbox endpoint POST /v1/sandbox/text-stats first to test; fall back to this paid endpoint for production use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:47:40.793Z","isFirstParty":false,"canonicalSlug":"agentshelf-text-statistics-de630c33"}