{"uid":"cap_etxf-jh_7uJ6eJfdvPMOw","slug":"one-engine-even-sample-array-utility-a8b71140","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UOBuQh8N5HXlPTmFKoVx4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 a JSON array, optionally offset and sized, with optional comparison against another array.","exampleAgentPrompt":"I have a list of 500 sensor readings and I need an evenly spaced sample of 20 values from it — can you pull that sample starting at offset 5?","exampleUseCases":[{"title":"Downsample time-series data for chart","prompt":"I have 800 temperature readings from the past month and I need exactly 50 evenly spaced ones to plot on a chart — can you sample them for me?"},{"title":"Compare two arrays by even sampling","prompt":"I have two arrays of 300 product prices each — take an even sample of 30 from the first one and compare it against this second reference array to see how they line up."},{"title":"Paginated preview of large dataset","prompt":"I have a list of 1000 user IDs and want to show a representative preview of 10 of them, evenly spread, starting after the first 50 — can you pull that subset?"}],"resultDescription":"A JSON object containing the evenly sampled subset of elements drawn from the input array, respecting the requested size and offset, with optional comparison results if a second array was provided.","failureModes":["Input array exceeds 1000 items — request rejected","Invalid or missing 'values' field — validation error","Size or offset parameters out of range — unexpected or empty result","Malformed JSON array input — parse error","Payment failure via x402 — 402 response, no result returned"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, evenly spaced subsample of an array (e.g. for charting, downsampling, or representative previews) and want a pay-per-call model with no subscription. Prefer it over manual slicing logic when you also want optional side-by-side comparison with a second array.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:12.610Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-array-utility-a8b71140"}