{"uid":"cap_5sGw8uAiwjEtfPWfq3H96","slug":"one-engine-array-frequency-analysis-06a367a0","name":"ONE Engine Array Frequency Analysis","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cifISCVQK6s7XzGTzYJop","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes frequency counts and distributions for elements in a JSON array, with optional comparison to a second array.","exampleAgentPrompt":"Can you analyze the frequency of each value in this array and tell me how many times each element appears? Here's my list: [\"apple\",\"banana\",\"apple\",\"cherry\",\"banana\",\"apple\",\"date\",\"cherry\"].","exampleUseCases":[{"title":"Inventory item frequency tally","prompt":"I have a list of product categories from our last 500 orders and I want to know how many times each category appears — here's the array: [\"electronics\",\"clothing\",\"electronics\",\"books\",\"clothing\",\"electronics\",...]. Can you give me the frequency count for each?"},{"title":"Survey response distribution","prompt":"I've got an array of survey answers from respondents — things like \"agree\", \"disagree\", \"neutral\" — and I want to see how many times each response shows up. The array has about 200 entries. Can you compute the frequency distribution?"},{"title":"Compare word usage across two texts","prompt":"I have two word lists from two different documents and I want to compare how frequently each word appears in both. Can you run a frequency analysis on the first array and use the second array as the comparison baseline?"}],"resultDescription":"Returns an object mapping each unique element in the input array to its occurrence count, along with distribution statistics. When a comparison array is provided, includes comparative frequency data between both arrays.","failureModes":["Array exceeds 1000 item limit — request rejected with validation error","Malformed JSON array input — returns parse error","Payment failure via x402 — HTTP 402 returned before processing","Empty values array — may return empty frequency map","Non-homogeneous array types may produce unexpected groupings"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call frequency/tally computation on a JSON array without standing up your own infrastructure. It is particularly useful for AI agents that need on-demand statistical summaries of discrete value lists (e.g. survey responses, log entries, categorical data) at very low cost ($0.0065 per call) via x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:35.513Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-analysis-06a367a0"}