{"uid":"cap_r2o25gCRzk1ODOtZictCW","slug":"one-engine-array-rotate-a7924a11","name":"ONE Engine Array Rotate","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/rotate/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jh0tYBooprBwGSSoB4z5x","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rotates a JSON array by a given offset, optionally comparing with another array.","exampleAgentPrompt":"Rotate this array [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] by an offset of 3 positions.","exampleUseCases":[{"title":"Circular buffer rotation for streaming data","prompt":"I have a circular buffer represented as an array [10, 20, 30, 40, 50] and I need to rotate it by 2 positions so the third element becomes the first — can you do that?"},{"title":"Round-robin task queue rebalancing","prompt":"Rotate my task queue [taskA, taskB, taskC, taskD, taskE] by 1 position so each agent gets a different first task on the next cycle."},{"title":"Playlist or schedule cyclic shift","prompt":"I have a playlist array ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] and I want to shift it by 2 slots so Wednesday becomes the first item."}],"resultDescription":"Returns a JSON object containing the rotated array, where elements have been cyclically shifted by the specified offset. May include comparison results if an optional second array was provided.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Non-integer offset value — type error","Payment not provided or insufficient — 402 response","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a low-cost, pay-per-call array rotation operation without spinning up your own compute. Ideal for autonomous agents on Base that need deterministic, lightweight array manipulation as part of a larger pipeline and want to pay micro-amounts per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:12.282Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-bef2ad3d"}