{"uid":"cap_xpeormM6S6nCLWbvRYta-","slug":"x402-agent-toolkit-text-stats-00ca03d8","name":"x402 Agent Toolkit – Text Stats","description":"Paid utility endpoints for AI agents. Pay with USDC on Base or Solana. Pure computation, no LLM dependency.","url":"https://x402-agent-toolkit.vercel.app/api/text-stats?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VRjMvZG6IYDK6qqPMYU3i","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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, etc.) for a given text string","exampleAgentPrompt":"Can you run text stats on this paragraph for me: 'The quick brown fox jumps over the lazy dog. It was a beautiful morning and the sun was shining brightly.' — I want to know the word count, character count, and sentence count.","exampleUseCases":[{"title":"Validate social media post length","prompt":"Before I post this to Twitter, can you run the text stats on it? I need to make sure it's under 280 characters and doesn't have too many sentences so it stays concise."},{"title":"Check essay meets assignment requirements","prompt":"I just finished writing an essay and need to verify it meets the requirements. Can you get me the word count, character count, and sentence breakdown? The assignment asks for at least 500 words and no more than 5000 characters."},{"title":"Analyze customer feedback message density","prompt":"I have a customer review I want to analyze. Can you run the text statistics on this feedback and tell me how many sentences and words are in it? I'm trying to understand if customers are being concise or verbose in their complaints."}],"resultDescription":"Returns a JSON object containing computed statistics about the submitted text, likely including word count, character count, sentence count, and possibly paragraph count or other structural metrics.","failureModes":["Missing 'text' field returns a 400 or validation error","Empty string may return zero-value stats or an error","Very large text inputs may be rejected or time out","Payment failure (insufficient USDC balance or x402 handshake failure) blocks the request before processing"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, LLM-free text statistics (word count, character count, sentence count) and want to pay per-call in USDC on Base or Solana via x402. Ideal for agents that need reliable text metrics without the cost or latency of a language model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:38:49.973Z","isFirstParty":false,"canonicalSlug":"x402-agent-toolkit-text-stats-00ca03d8"}