{"uid":"cap_UUPPs9fTAYlIxlHFoGVlT","slug":"one-engine-even-sample-array-utility-1905792a","name":"ONE Engine Even Sample Array Utility","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/even-sample/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ya0Oyp5zcjI52Iq16wpxU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an even-indexed sample of elements from a provided array, with optional size, offset, and comparison array parameters.","exampleAgentPrompt":"Take this list of 200 values and give me an even-indexed sample of 50 elements starting at offset 2: [1, 2, 3, 4, 5, ...]","exampleUseCases":[{"title":"Downsample time-series sensor data","prompt":"I have 800 sensor readings collected every second — can you pull out just the even-indexed ones, limited to 100 samples, so I can reduce the dataset without losing the overall pattern?"},{"title":"Compare even-sampled subsets of two arrays","prompt":"I have two arrays of stock prices from different exchanges — grab the even-indexed sample of 60 from the first array and compare it against this second array of benchmark prices."},{"title":"Paginate through large array with offset","prompt":"I need to page through a dataset of 1000 product IDs — give me an even-sample of 50 items starting at offset 100 from this values list."}],"resultDescription":"A JSON object containing the even-indexed (or even-sampled) subset of the input array, filtered by size and offset parameters if provided, and optionally compared against a second array.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field returns a validation error","Invalid types for size or offset (non-integer) cause a 400 error","Empty array input may return an empty result","Payment failure via x402 protocol returns a 402 response"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap, pay-per-call way to extract even-indexed elements from an array of up to 1000 items, especially within an autonomous agent workflow on Base using x402 micropayments. Prefer it over rolling your own logic when you need a hosted, stateless utility with no setup cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:45.508Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-array-utility-a8b71140"}