{"uid":"cap_XJHlrf_269g7lLMzyxZ7Z","slug":"one-engine-even-sample-endpoint-28d7fc85","name":"ONE Engine Even Sample Endpoint","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NIxfYqnYSOV0gSLrqi9Yh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 — can you evenly sample it down to 50 items, starting from the 10th element?","exampleUseCases":[{"title":"Downsample time series data","prompt":"I've got an array of 1000 hourly temperature readings and I only need 100 evenly spaced ones for my chart — can you sample it down to 100 values with no offset?"},{"title":"Extract regular interval survey responses","prompt":"I have 800 survey responses in an array and I want to pick 40 of them evenly spread out across the whole list, starting from the very beginning — can you do that?"},{"title":"Compare evenly sampled subsets","prompt":"Take this array of 600 product prices and give me an even sample of 60 items starting at offset 5, and also compare it against this reference array I'm providing."}],"resultDescription":"A JSON object containing the evenly sampled subset of the input array, with elements selected at regular intervals according to the requested size and offset parameters.","failureModes":["Array exceeds 1000 items — request rejected with validation error","Invalid or non-integer size/offset values — schema validation failure","Empty values array — may return empty result or error","Payment not included or insufficient — 402 Payment Required response","Malformed JSON body — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call utility to evenly downsample or subsample a JSON array up to 1000 elements. It is ideal for agents that need to thin out large datasets, reduce array size for downstream processing, or extract regularly spaced samples from sequential data without spinning up custom logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:30.327Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-endpoint-28d7fc85"}