{"uid":"cap_Tcg5VxfJU1lRiAHuI25Py","slug":"one-engine-array-slice-b193b3b0","name":"ONE Engine Array Slice","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/slice?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"integer"},"start":{"type":"integer"},"values":{"type":"array"}}},"responseSchema":{"type":"json","example":{"count":2,"values":[2,3]}},"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_cX1H3Dy4VuEmOhT0Emq-2","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":"Extracts a subarray from an input array using start and end indices, returning the sliced values and count.","exampleAgentPrompt":"Slice my array [10, 20, 30, 40, 50] from index 1 to 3 and give me the resulting elements.","exampleUseCases":[{"title":"Paginate large dataset window","prompt":"I have an array of 100 items and I only want elements from index 10 to 20 — can you extract that slice for me?"},{"title":"Trim list to first N items","prompt":"Take this list [\"apple\", \"banana\", \"cherry\", \"date\", \"elderberry\"] and give me just the first 3 items, starting at index 0 and ending at 3."},{"title":"Extract mid-range values","prompt":"From the array [5, 15, 25, 35, 45, 55, 65], pull out the values between index 2 and 5 so I can process just that segment."}],"resultDescription":"A JSON object containing 'values' (the sliced subarray) and 'count' (the number of elements returned in the slice).","failureModes":["Missing or invalid 'values' array returns an error","Out-of-bounds start/end indices may return an empty array or error","Non-integer start/end values may cause a validation error","Payment failure via x402 results in a 402 response before processing","Malformed JSON body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a lightweight, pay-per-call array slicing operation without spinning up its own compute — especially useful in agentic pipelines on Base where microtransactions via x402 are already in use and the cost ($0.001 USDC) is negligible compared to orchestration overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:08.814Z","isFirstParty":false,"canonicalSlug":"one-engine-array-slice-b193b3b0"}