{"uid":"cap_paA_Jh4AktUKZrgQufMKI","slug":"word-frequency-for-agents-3f35cc95","name":"Word Frequency for Agents","description":"Top word frequencies. Call when ranking terms for tags, search hints, or simple content signals. Returns top words by frequency as structured JSON. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/word-frequency?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."}}},"responseSchema":{"type":"json","example":{"top":[{"word":"agent","count":1},{"word":"hello","count":1},{"word":"world","count":1}],"schema":"delx/word-frequency/v1","unique":3,"total_tokens":3}},"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_cHDuW6lo-6hh0wVNE9WNk","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":"Counts and returns the top words by frequency from a given text as structured JSON","exampleAgentPrompt":"What are the most frequent words in this article text? Here it is: 'Climate change is accelerating at an alarming rate. Scientists warn that climate impacts will worsen unless climate action is taken immediately.'","exampleUseCases":[{"title":"Auto-tagging blog post content","prompt":"Can you pull out the top words by frequency from this blog post so I can use them as tags? Here's the full text: 'Machine learning models are transforming industries. Machine learning in healthcare, finance, and logistics is growing fast...'"},{"title":"Search hint generation for articles","prompt":"I want to generate search hint keywords for this news article — analyze the word frequencies and give me the top terms. Article text: 'The stock market rallied sharply on Monday after the Federal Reserve signaled a pause in rate hikes...'"},{"title":"Content signal extraction for SEO","prompt":"Take this product description and tell me which words appear most frequently so I can understand what terms dominate the copy: 'Our premium wireless headphones deliver crystal-clear audio with deep bass and noise cancellation...'"}],"resultDescription":"Returns a structured JSON object containing an ordered list of the top words and their respective frequency counts extracted from the provided text, suitable for use in tagging, search hints, or content analysis pipelines.","failureModes":["Text exceeds 100,000 character limit — returns a structured validation error (no charge)","Empty or missing text field — returns a structured validation error (no charge)","Payment not provided or insufficient — returns 402 Payment Required","Network timeout on large payloads near the character limit"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, first-party word frequency count without any LLM interpretation or external dependencies. Ideal for lightweight content signal extraction, tag generation, or search hint ranking where reproducibility and low cost ($0.001 USDC per call) matter. Prefer this over LLM-based keyword extraction when you want raw frequency counts rather than semantic importance scores, and over third-party NLP APIs when you want no API key, no subscription, and no data retention.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:41:59.554Z","isFirstParty":false,"canonicalSlug":"word-frequency-for-agents-3f35cc95"}