{"uid":"cap_QajdQIrPsF2TBDO_bSg1y","slug":"penny-api-word-count-85194421","name":"Penny API – Word Count","description":"Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.","url":"https://pennyagent.pythonanywhere.com/paid/wordcount?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"words":4,"sentences":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_MUMVLGXDmZ2oIicdu-29N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts words and sentences in a given text string, returning structured numeric totals.","exampleAgentPrompt":"How many words and sentences are in this paragraph: 'The quick brown fox jumps over the lazy dog. It was a sunny day.'?","exampleUseCases":[{"title":"Blog post length verification","prompt":"Can you check how many words and sentences are in this draft intro paragraph: 'Artificial intelligence is transforming every industry. From healthcare to finance, the possibilities are endless. This guide will help you get started.'?"},{"title":"SEO content length audit","prompt":"I need to know the word count and sentence count for this meta description copy before I publish it: 'Discover the best hiking trails near Denver. Expert guides, trail maps, and difficulty ratings all in one place.'"},{"title":"Student essay word limit check","prompt":"My essay needs to be under 300 words — can you count the words and sentences in this passage: 'Climate change is one of the most pressing issues of our time. Scientists agree that immediate action is required to prevent catastrophic warming. Governments and individuals both have a role to play.'?"}],"resultDescription":"A JSON object with two numeric fields: 'words' (total word count) and 'sentences' (total sentence count) for the submitted text.","failureModes":["Missing or empty input text returns an error or zero counts","Very large text inputs may time out or be rejected","Non-string input types (e.g. numbers, objects) may cause a 400 error","x402 payment failure results in 402 response before processing occurs","Ambiguous sentence boundaries (e.g. abbreviations, ellipses) may cause inaccurate sentence counts"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call word and sentence count without setting up a local NLP library or heavier text analysis service. Ideal for agents that occasionally need text metrics on demand without infrastructure overhead, and when payment via x402/USDC on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:42:36.001Z","isFirstParty":false,"canonicalSlug":"penny-api-word-count-85194421"}