{"uid":"cap_oRlohKhZa1ut4ymCxxcId","slug":"one-engine-array-frequency-t1-5899b6ef","name":"ONE Engine Array Frequency (T1)","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cOSg28cjNAOjlw9M8ww8T","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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.","exampleAgentPrompt":"Count how often each value appears in this list: [\"apple\",\"banana\",\"apple\",\"cherry\",\"banana\",\"apple\"] — give me the frequency distribution.","exampleUseCases":[{"title":"Survey response tally","prompt":"I have survey responses in this array: [\"agree\",\"disagree\",\"strongly agree\",\"agree\",\"neutral\",\"agree\",\"disagree\"] — count how many times each answer appears so I can see the breakdown."},{"title":"Log error code frequency","prompt":"Here's an array of error codes from our logs: [404,500,404,403,500,404,200,500] — how often does each code occur?"},{"title":"Compare two datasets distribution","prompt":"I have two arrays of category tags — [\"sports\",\"tech\",\"sports\",\"food\"] and [\"tech\",\"tech\",\"sports\",\"food\",\"food\"] — can you compute the frequency distribution for both so I can compare them?"}],"resultDescription":"An object containing frequency counts for each unique value found in the input array, showing how many times each element appears. When a comparison array is provided, the result may include frequency data for both arrays for side-by-side analysis.","failureModes":["Array exceeds 1000 items — request rejected","Malformed or non-array values input — validation error","Empty array input — may return empty or zero-count result","Payment failure via x402 — 402 response before computation","Network timeout on large array processing"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, pay-per-call frequency count or value distribution on an array of up to 1000 items, especially in autonomous agent workflows on Base using x402 micropayments. Ideal for lightweight statistical summarization without setting up a full data processing pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:00.617Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-t1-5899b6ef"}