{"uid":"cap_DmZCRVo3RrvU7cxHTsUlx","slug":"pennyrail-text-stats-text-metrics-c7ac96d7","name":"PennyRail Text Stats / Text Metrics","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.stats--text-metrics","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_LcREt8_6FtTi0OHFQiqYT","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 statistical and linguistic metrics (character count, word count, sentence count, readability scores, etc.) for a given input text string.","exampleAgentPrompt":"Can you run text stats on this article draft and tell me the word count, sentence count, and readability score? Here's the text: 'Artificial intelligence is transforming industries at an unprecedented pace. Companies large and small are racing to adopt machine learning tools.'","exampleUseCases":[{"title":"Readability check before publishing","prompt":"Before I publish this blog post, can you analyze it for readability, word count, and sentence complexity? Here's the full text: 'In today's fast-paced world, staying productive requires more than just willpower. You need systems, habits, and the right tools to help you stay on track.'"},{"title":"Word count for editorial word limit","prompt":"I need to know the exact word count and character count of this submission to make sure it's under the 500-word limit — here's the text: 'The history of modern art is deeply intertwined with the social upheavals of the twentieth century, from the trauma of two world wars to the optimism of the space age.'"},{"title":"NLP pipeline text profiling","prompt":"Profile this customer review text for my NLP pipeline — I need word count, sentence count, and any readability metrics you can get: 'The product arrived quickly and was well packaged, but the instructions were confusing and the battery life disappointed me.'"}],"resultDescription":"Returns a JSON object containing text metrics such as word count, character count, sentence count, readability scores (e.g. Flesch-Kincaid), and potentially other linguistic statistics derived from the input text string.","failureModes":["Empty or missing 'input' field returns a validation error","Extremely large text inputs may time out or be truncated","Non-string or null input values cause schema validation failure","Ambiguous or malformed JSON request body returns 400-level error","Paid endpoint — insufficient funds or missing x402 payment header returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call text metrics computation without setting up your own NLP library or hosting infrastructure. Ideal for lightweight pipelines that need word counts, character counts, or readability scores on-demand with micro-payment billing via USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:52:02.292Z","isFirstParty":false}