{"uid":"cap_UDlknONhezb2sy34A3pb-","slug":"one-engine-array-frequency-t3-7523317d","name":"ONE Engine Array Frequency (T3)","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/t3?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.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_ezf5W3RkNsW-jzeLAq_Z_","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":"Computes the frequency distribution of values in a JSON array, with optional comparison against a second array and configurable offset/size.","exampleAgentPrompt":"Count how many times each value appears in this list — [\"apple\",\"banana\",\"apple\",\"cherry\",\"banana\",\"apple\"] — and return the frequency distribution, showing the top 5 most common.","exampleUseCases":[{"title":"Survey response frequency analysis","prompt":"I have a list of 500 survey answers like [\"agree\",\"disagree\",\"neutral\",\"agree\",\"agree\",...] — can you count how many times each response appears and give me the top 10 most frequent?"},{"title":"Log error code distribution","prompt":"Here's an array of error codes from our server logs: [500, 404, 200, 500, 403, 404, 500, ...]. Can you compute how frequently each code appears, offset by 0 and limit to 20 results?"},{"title":"Compare word frequency between two texts","prompt":"Compare the word frequency of these two arrays — the first is words from document A and the second from document B — and tell me which words appear most often in each."}],"resultDescription":"Returns an object containing frequency counts for each unique value in the input array, typically as a map of value-to-count pairs, possibly ordered by frequency. May include comparative stats if a second array is provided.","failureModes":["Array exceeds 1000-item limit — request rejected","Malformed or non-array values field — validation error","Payment not completed via x402 — 402 response returned","Empty values array — may return empty distribution","Non-serializable array items — processing error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, per-call frequency/occurrence count on an array of up to 1000 items, especially in autonomous agent workflows where cost per call matters. Prefer it over building custom aggregation logic when the data fits within the size limit and you want a fast, stateless computation without standing up infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:22.887Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-t3-7523317d"}