{"uid":"cap_GZNgV-SbklXJi3czQLy8t","slug":"one-engine-array-frequency-t5-19e349be","name":"ONE Engine Array Frequency (T5)","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/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lL885bN3TyKxlzwnzI7Dl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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 elements in a JSON array, with optional comparison against a second array and configurable offset and size parameters.","exampleAgentPrompt":"Count how many times each value appears in this list: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\", \"apple\"] — give me a frequency breakdown for all items.","exampleUseCases":[{"title":"Survey response tally","prompt":"I have a survey results array with up to 500 responses like [\"agree\", \"disagree\", \"neutral\", \"agree\", ...] — can you count how often each answer appears so I can see the distribution?"},{"title":"Log error code frequency","prompt":"Here's an array of error codes from our system logs — count how many times each code shows up so I know which errors are most frequent. Compare it against last week's error codes too."},{"title":"Product tag popularity ranking","prompt":"Given this array of product tags from our catalog, compute the frequency of each tag so I can see which categories appear most often. Limit results to the top 20 using size 20."}],"resultDescription":"Returns a JSON object containing frequency counts for each unique element found in the input array. May include comparison data if a second array is provided, and respects size and offset for paginated or limited results.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Non-array value passed for 'values' or 'other' — schema error","Payment failure via x402 — 402 response before processing","Empty array input — may return empty frequency map"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call frequency distribution computation on an array of up to 1000 items without standing up your own infrastructure. It is ideal for agents that occasionally need element counting or histogram generation as part of a larger workflow, and where the low per-call cost ($0.0025 USDC) makes it more economical than a full analytics service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:28.388Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-t5-19e349be"}