{"uid":"cap_eCO1pj55uzPaLSfVCIf-k","slug":"one-engine-even-sample-from-array-ecc97402","name":"ONE Engine Even Sample from 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/t9?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.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ukP87ope5HApCXJUDerAs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","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 compared against another array.","exampleAgentPrompt":"From this list of 500 product IDs, give me an evenly spaced sample of 20 items starting at offset 0: [\"pid-001\", \"pid-002\", ..., \"pid-500\"].","exampleUseCases":[{"title":"Downsample time series data","prompt":"I have an array of 800 sensor readings and I only need 50 evenly spaced ones for my chart — can you sample them uniformly for me?"},{"title":"Representative data subset for review","prompt":"I've got a list of 1000 customer records and want to pull out 30 evenly distributed ones to audit manually — can you extract that even sample for me?"},{"title":"Compare sampled subset to reference","prompt":"Sample 25 evenly spaced items from my main dataset and compare them against this reference list to see which ones overlap."}],"resultDescription":"A JSON object containing the evenly spaced sampled elements drawn from the input array, reflecting the requested size and offset, with optional comparison output if a second array was provided.","failureModes":["Array exceeds 1000-item limit — request rejected","Invalid or non-array values field — validation error","Size or offset parameters out of range — unexpected or empty results","Payment not provided or insufficient USDC — 402 Payment Required","Malformed JSON body — parsing error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, evenly spaced subsample from a large array (up to 1000 items) and want a pay-per-call utility with no subscription overhead. Prefer it over writing custom sampling logic when operating inside an autonomous agent workflow on Base using x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:22.040Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-from-array-ecc97402"}