{"uid":"cap_-2O_jXBFFwGoCwi8j8OOl","slug":"signaldesk-ai-array-frequency-counter-c5adc590","name":"SignalDesk AI Array Frequency Counter","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/json/array-frequency?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{},"maxItems":1000,"minItems":0,"description":"JSON array."}}},"responseSchema":{"type":"json","example":{"frequencies":[{"count":2,"value":"a"},{"count":1,"value":"b"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7LdlH6oTJrToXRjTPI0fR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the frequency of each unique value in a JSON array, returning a sorted list of values with their occurrence counts","exampleAgentPrompt":"Count how many times each value appears in this array for me: [\"apple\", \"banana\", \"apple\", \"cherry\", \"banana\", \"apple\"] — I want to see them ranked by frequency.","exampleUseCases":[{"title":"Survey response tallying","prompt":"I have a list of survey answers like [\"yes\", \"no\", \"yes\", \"maybe\", \"yes\", \"no\"] — can you count how many times each response appears so I can see the breakdown?"},{"title":"Log error frequency analysis","prompt":"Here are the error codes from my server logs: [\"404\", \"500\", \"404\", \"403\", \"500\", \"404\", \"200\"] — can you tally up how often each one occurs so I know which errors are most common?"},{"title":"Word repetition counting","prompt":"I want to know which words repeat most in this list: [\"the\", \"cat\", \"sat\", \"the\", \"cat\", \"on\", \"the\", \"mat\"] — count the frequency of each word for me."}],"resultDescription":"Returns a JSON object with a 'frequencies' array, where each element contains a 'value' (the unique item from the input array) and a 'count' (how many times it appeared). Results appear to be sorted by count in descending order, so the most frequent items come first.","failureModes":["Array exceeds 1000 items — request rejected due to maxItems constraint","Malformed JSON input — array not parseable returns error","Empty array — returns empty frequencies list","Payment failure — x402 payment of 0.001 USDC not processed, request blocked","Network timeout on Cloudflare Workers edge"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.001 USDC) frequency count over a JSON array of up to 1000 items and want results without setting up local computation. Ideal for agents that need on-the-fly tallying of categorical data, survey responses, log codes, or any discrete value set without maintaining local state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:19.450Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-array-frequency-counter-c5adc590"}