{"uid":"cap_9873DZYP6AM6rH7xArfdX","slug":"one-engine-even-sample-34acac09","name":"ONE Engine Even Sample","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/t3?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.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_Crjv6JXQEcqJTRGnyYvvN","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":"Returns an evenly-spaced sample of elements from an input array, optionally compared against another array, with configurable size and offset.","exampleAgentPrompt":"I have a JSON array of 500 product IDs and I need an evenly spaced sample of 20 items from it — can you call the ONE Engine even-sample endpoint with my array and a size of 20?","exampleUseCases":[{"title":"Downsample time series data","prompt":"I have a list of 800 sensor readings and I only need 50 evenly spaced ones to plot a summary chart — can you sample 50 values evenly from my readings array?"},{"title":"Representative survey subset","prompt":"I have 1000 survey responses in a JSON array and I want to pick 25 of them evenly spaced to manually review — grab me an even sample of size 25."},{"title":"Compare two arrays with sampling","prompt":"I have two arrays, one with 600 baseline values and one with 600 test values, and I want to compare a uniform sample of 30 from each — run an even sample of size 30 on my values array using the baseline as the comparison array."}],"resultDescription":"Returns a JSON object containing the evenly sampled subset of the input array, selected at uniform intervals based on the requested size and optional offset. The response includes the sampled elements drawn from the input values array.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field — validation error returned","Sample size larger than input array — may return full array or error","Invalid data types for size or offset integers — schema validation failure","Payment not included or insufficient — 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, evenly distributed subsample of a JSON array without randomness — ideal for thinning large datasets, creating representative previews, or aligning two arrays for comparison. Prefer this over random sampling when reproducibility and uniform spacing matter. At $0.001 USDC per call it is cost-effective for agents doing frequent data reduction tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:22.890Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-34acac09"}