{"uid":"cap_Wdpv0SRfVUs0OKwpUYrvO","slug":"one-engine-array-frequency-analysis-ad66d3f4","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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YU1s-uuovorIOwuTuvaL6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes element frequency counts for a JSON array, optionally comparing against a second array or applying offset/size windowing.","exampleAgentPrompt":"Count how many times each value appears in this array: [\"apple\",\"banana\",\"apple\",\"cherry\",\"banana\",\"apple\"] — give me a frequency breakdown for all items.","exampleUseCases":[{"title":"Log error code frequency analysis","prompt":"I have a list of up to 1000 HTTP status codes from our server logs — can you count how many times each status code appears so I can see which errors are most common?"},{"title":"Compare tag frequencies across two datasets","prompt":"I have two arrays of product tags from two different categories. Can you compute the frequency of each tag in the first array and compare it against the second array's tag frequencies?"},{"title":"Survey response tallying","prompt":"Here are 500 survey answers in an array — each is one of 'Agree', 'Disagree', or 'Neutral'. Count how many times each response appears so I can tally the results."}],"resultDescription":"Returns an object mapping each unique element in the input array to its occurrence count, optionally windowed by offset/size and compared against a second array's frequency distribution.","failureModes":["Array exceeds 1000 items — request rejected or truncated","Invalid JSON array format in 'values' field returns an error","Non-serializable array elements may cause parsing failures","Payment not provided or insufficient USDC balance triggers 402 response","Empty array input may return empty frequency map"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.004 per call) pay-per-use frequency count on a JSON array of up to 1000 elements, especially within an autonomous agent workflow on Base using x402 micropayments, without needing to spin up local computation or a heavier data pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:27.517Z","isFirstParty":false,"canonicalSlug":"one-engine-array-frequency-analysis-06a367a0"}