{"uid":"cap_1a-zluAbvOAZdMhjIMjiB","slug":"one-engine-array-frequency-top-10-fe665a85","name":"ONE Engine Array Frequency Top-10","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/array/frequency/t10?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"size":{"type":"integer"},"other":{"type":"array","description":"Optional comparison array"},"offset":{"type":"integer"},"values":{"type":"array","description":"JSON array with at most 1000 items"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q6XxV1-FnXuiggn0EQWHC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the top-10 most frequent values in a JSON array, with optional offset and comparison against a second array.","exampleAgentPrompt":"Find the top 10 most frequent values in this list: ['apple','banana','apple','cherry','banana','apple','grape','cherry','banana','apple'] — show me which items appear most often.","exampleUseCases":[{"title":"Most Common Tags in Dataset","prompt":"Here's a list of up to 1000 tags from our content database — can you find the top 10 most frequently occurring ones so I know what topics dominate?"},{"title":"Frequent Customer Complaints Analysis","prompt":"I have an array of categorized customer complaint types from this month. Can you rank the top 10 most common complaint categories so I can prioritize fixes?"},{"title":"Compare Value Frequencies Across Two Lists","prompt":"I have two arrays of product SKUs — one from last week's orders and one from this week. Can you find the top 10 most frequent SKUs in this week's list and compare them against last week's to see what changed?"}],"resultDescription":"Returns a JSON object containing the top-10 (or top-N if size is specified) most frequent values from the input array, their occurrence counts, ranked in descending order of frequency, with optional offset for pagination and optional comparison data against a second array.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — 400 error","Non-array value passed for 'values' — schema validation failure","Empty array returns empty result set","Payment failure via x402 — 402 response before computation"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.03 USDC), serverless frequency analysis on an array of up to 1000 items and want ranked top-N results without running local code. Ideal for AI agents that need on-demand statistical summaries without provisioning compute infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:38.071Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-top-10-fe665a85"}