{"uid":"cap_HEUVLFFQqhOQKVelb0jwz","slug":"one-engine-even-sample-array-utility-b991deaf","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7ZQmeX5s5uSASN-Jg7aCn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an evenly spaced sample of elements from an input array, with optional offset and size controls.","exampleAgentPrompt":"I have a list of 500 sensor readings and I need an evenly spaced sample of 20 of them — can you run that through the even-sample utility with offset 0 and size 20?","exampleUseCases":[{"title":"Thinning time-series sensor data","prompt":"I've got an array of 800 temperature readings taken every second, but I only need 50 evenly spaced ones for my chart — can you sample it down to 50 with no offset?"},{"title":"Building a representative dataset preview","prompt":"I have a JSON array of 1000 product records and want to show a quick preview of 10 evenly distributed ones — can you even-sample that array to size 10?"},{"title":"Comparing two array structures","prompt":"I have two arrays — a reference set and a new dataset — and I want to even-sample the new one to match the reference. Can you run the even-sample with an offset of 5 and size 30 and pass the reference as the comparison array?"}],"resultDescription":"Returns a JSON object containing the evenly spaced subset of the input array, with elements selected at uniform intervals (optionally offset from the start). The response schema is open/additionalProperties, so it may include the sampled array and metadata about the selection.","failureModes":["Input array exceeds 1000 items — request rejected","Invalid or non-array 'values' field — schema validation error","Payment failure via x402/Base — 402 response before processing","Size or offset out of range relative to input array length","Malformed JSON body — parse error response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, evenly spaced subset of an array (not a random sample) and want a lightweight, pay-per-call utility without managing your own sampling logic. It is ideal for downsampling ordered sequences like time-series, sensor readings, or ranked lists where uniform spacing matters. Prefer it over general-purpose compute when cost per call ($0.0015 USDC) and simplicity are priorities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:39.941Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-array-utility-b991deaf"}