{"uid":"cap_xCqM5zYRGzZ9q7y9qVxAr","slug":"one-engine-word-count-api-e2f59800","name":"ONE Engine Word Count API","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/text/word-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"json","example":{"words":3,"characters":20}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k4T6kPst3_lk564n8R0uJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the number of words and characters in a given text string, returning both metrics as a JSON response.","exampleAgentPrompt":"How many words and characters are in this text: 'The quick brown fox jumps over the lazy dog'?","exampleUseCases":[{"title":"Essay length validation before submission","prompt":"Check if my college application essay is within the 650-word limit — here's the text: 'It was a humid August morning when I first realized that the kitchen was my classroom...' [full essay text]"},{"title":"Content quota enforcement for social posts","prompt":"Count the words in this draft LinkedIn post so I know if it's under 300 words: 'Excited to announce that after three years of building in stealth...'"},{"title":"Billing by word count for translation pipeline","prompt":"How many words are in this source document so I can estimate translation cost? Here's the text: 'Our terms of service govern your use of the platform and all associated services...'"}],"resultDescription":"A JSON object containing two fields: 'words' (integer count of words in the input text) and 'characters' (integer count of characters in the input text). Example: {\"words\": 3, \"characters\": 20}.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty text input — may return zero counts or an error","Missing 'text' field in request body — returns validation error","Payment failure via x402 — 402 response if USDC payment not provided or insufficient"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, on-demand word and character count for text up to 50,000 characters in an autonomous agent pipeline. At $0.0009 per call via x402 on Base, it is ideal for pay-per-use workflows where spinning up a local NLP library or calling a heavyweight API would be overkill. Prefer this over general LLM-based counting (which is slow and expensive) or building custom string-processing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:56.640Z","isFirstParty":false,"canonicalSlug":"one-engine-word-count-api-e2f59800"}