{"uid":"cap_MtQqBiCQffd49BAadGjcf","slug":"one-engine-even-sample-top-10-da7ce125","name":"ONE Engine Even Sample (Top 10)","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xqxa6pke3663ie1gvHrws","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns an even-interval sample of up to 10 elements from an input array, with optional offset and comparison array support.","exampleAgentPrompt":"Take this array of 500 values and give me an evenly spaced sample of 10 items from it: [1, 4, 9, 16, 25, ...]","exampleUseCases":[{"title":"Downsample time-series sensor data","prompt":"I have 800 temperature readings from the past hour — can you pull out 10 evenly spaced readings to give me a quick overview of the trend?"},{"title":"Representative preview of a long list","prompt":"I've got a playlist of 300 songs; pick 10 evenly distributed ones so I can get a representative feel for the variety."},{"title":"Compare two arrays with aligned samples","prompt":"Here are two arrays of 200 price points each — sample 10 evenly from the first one, and use the second array as a comparison baseline."}],"resultDescription":"A JSON object containing an evenly spaced subset of up to 10 items drawn from the input array, selected at uniform intervals across its length. If an offset is provided, the sampling window is shifted accordingly. An optional comparison array may also influence or contextualize the output.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field — 400 error","Payment not included or insufficient USDC — 402 Payment Required","Malformed JSON body — parsing error","Offset out of bounds relative to array length — unexpected empty or partial result"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.03 USDC), pay-per-call way to extract an evenly spaced sample of up to 10 elements from an array of up to 1000 items. Ideal for agents that need to downsample large lists for previewing, summarizing, or comparing data without processing every element. Prefer this over manual index arithmetic when you need reproducible, evenly distributed sampling with optional offset control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:48.495Z","isFirstParty":false,"canonicalSlug":"one-engine-even-sample-top-10-da7ce125"}