{"uid":"cap_wP--VxXVJyn2sTOTCS0vS","slug":"one-engine-text-token-word-counter-133198e1","name":"ONE Engine Text Token Word Counter","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/text-token/words/t8?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zyTSHSCyEUfS5oIXsH-TZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 in a given text string, up to 50,000 characters, returning token/word statistics.","exampleAgentPrompt":"How many words are in this text: 'The quick brown fox jumps over the lazy dog. It was a bright cold day in April, and the clocks were striking thirteen.'?","exampleUseCases":[{"title":"Word count before content submission","prompt":"Can you count the words in this blog post draft before I submit it? Here's the text: 'Artificial intelligence is transforming industries at a rapid pace. From healthcare to finance, the applications are endless and the implications profound. Organizations must adapt quickly or risk falling behind...'"},{"title":"Agent self-monitoring text length","prompt":"Check how many words are in the following message I'm about to send to a customer — I need to make sure it's under 200 words: 'Dear valued customer, thank you for reaching out to our support team. We understand your concern and are working diligently to resolve your issue as quickly as possible...'"},{"title":"Tokenize user input for pipeline routing","prompt":"Count the words in this user query so I can decide which processing pipeline to use: 'I need a detailed analysis of Q3 financial results including revenue breakdown by region, margin trends, and year-over-year comparisons for the last five fiscal years.'"}],"resultDescription":"Returns a JSON object containing word count and potentially token-level statistics derived from the submitted text. The exact fields are flexible (additionalProperties: true), but the primary output is a numerical count of words found in the input text.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Empty or missing 'text' field returns a validation error","Payment failure via x402 prevents the call from executing","Network timeout on the Cloudflare Worker edge node","Malformed JSON body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call word/token count for arbitrary text strings up to 50,000 characters in an autonomous agent context. It is ideal when you want to avoid integrating a heavier NLP library locally, when operating in a cost-sensitive pipeline where $0.01 per call is acceptable, or when you need a lightweight stateless word count utility callable from an AI agent with x402 payment support on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:30.328Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-word-counter-9981bf78"}