{"uid":"cap_L-8YBwfweHnHTv_FqQeb1","slug":"one-engine-even-sample-array-12bdec51","name":"ONE Engine Even Sample Array","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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JgN8CRq7TKxKLdubWyKW2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 with offset and size control.","exampleAgentPrompt":"From this array of 800 product IDs, give me an evenly-spaced sample of 20 items starting at offset 0.","exampleUseCases":[{"title":"Downsampling time-series data","prompt":"I have an array of 1000 sensor readings — can you pull out 50 evenly-spaced values so I can plot a lighter trend line?"},{"title":"Pagination preview sampling","prompt":"Take this list of 600 user records and give me an even sample of 30 entries spread across the whole list, starting from the beginning."},{"title":"A/B test cohort selection","prompt":"From this array of 400 customer IDs, extract an evenly-distributed sample of 40 to assign to a test group."}],"resultDescription":"A JSON object containing the evenly-sampled subset of the input array, with elements drawn at uniform intervals across the source array, respecting the requested size and offset.","failureModes":["Array exceeds 1000-item limit — request rejected","Invalid or non-array value for 'values' field — schema validation error","Payment not included or insufficient — 402 Payment Required response","Requested sample size larger than input array — may return full array or error","Offset beyond array bounds — may return empty result"],"whenToPreferThis":"Use this endpoint when you need a simple, low-cost utility to uniformly downsample or subsample a JSON array without setting up local computation infrastructure. Ideal for agents that need quick, pay-per-call array sampling on Base via x402 payments, especially when the array is too large to process inline or when even distribution across the dataset matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:55.112Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-array-12bdec51"}