{"uid":"cap_OzJvLKH-2JRouqn_yudoy","slug":"one-engine-array-frequency-t4-44b83420","name":"ONE Engine Array Frequency (t4)","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H75u6Ub_B8Vk6_5Q85-Yz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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 size/offset parameters.","exampleAgentPrompt":"Count how many times each value appears in this list and give me the frequency distribution: [\"apple\",\"banana\",\"apple\",\"cherry\",\"banana\",\"apple\",\"cherry\",\"cherry\",\"banana\",\"apple\"] — limit results to the top 5.","exampleUseCases":[{"title":"Survey response frequency analysis","prompt":"I have survey responses from 200 users stored as an array — can you count how many times each answer appears so I can see which options were chosen most often? Here's the array: [\"strongly agree\",\"agree\",\"neutral\",\"agree\",\"disagree\",\"strongly agree\",\"agree\"]"},{"title":"Compare tag frequencies across two datasets","prompt":"I have two lists of tags from different blog post collections and I want to see how the frequency of each tag compares between them — can you run a frequency comparison on these two arrays for me?"},{"title":"Find most repeated items in a product catalog","prompt":"Here's a list of category labels from our product database — can you calculate how frequently each category appears and return the top 10 most common ones? Offset by 0 and limit to 10 results."}],"resultDescription":"Returns an object containing frequency counts for each distinct element in the input array, showing how many times each value appears. When a comparison array is provided, the response includes comparative frequency data across both arrays. Results may be paginated via size and offset parameters.","failureModes":["Array exceeds 1000-item limit — request rejected","Malformed or non-array values field — validation error","Payment not included or insufficient — 402 response requiring x402 payment on Base","Missing required values field — schema validation error","Non-serializable array elements may cause processing errors"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.0015 USDC) pay-per-call frequency/occurrence count over an array of up to 1000 elements, especially in an autonomous agent context that already handles x402 payments on Base. It is ideal for categorical data analysis, duplicate detection, or comparing element distributions across two datasets without standing up your own analytics infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:37.299Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-t4-44b83420"}