{"uid":"cap_CEDp2PRdcanzLqg-h_kI3","slug":"one-engine-array-rotate-c42c6c07","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q38VQyx0wOIHtJN8WndI1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 against a second array","exampleAgentPrompt":"Rotate this array [1, 2, 3, 4, 5] by an offset of 2 positions using ONE Engine's array rotate utility.","exampleUseCases":[{"title":"Rotating a schedule list","prompt":"I have this weekly schedule array [\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\"] and I need to rotate it by 3 positions — can you shift it so the fourth day becomes first?"},{"title":"Circular buffer offset alignment","prompt":"Take this sensor readings array [10, 20, 30, 40, 50, 60] and rotate it by an offset of 4 to realign it with our baseline, then compare it against [40, 50, 60, 10, 20, 30]."},{"title":"Rotating playlist order","prompt":"I have a playlist array [\"song1\",\"song2\",\"song3\",\"song4\",\"song5\",\"song6\",\"song7\",\"song8\"] and want to rotate it by 5 positions so it starts from song6 — please do that via ONE Engine."}],"resultDescription":"Returns a JSON object containing the rotated array, where elements have been cyclically shifted by the specified offset. If a comparison array is provided, the response may include comparison results alongside the rotated output.","failureModes":["Array exceeds 1000 items limit — request rejected","Invalid offset type (non-integer) — schema validation error","Payment not processed — 402 response requiring x402 payment on Base","Empty or missing 'values' field — required field error","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap ($0.01 USDC), pay-per-call array rotation utility without standing up your own compute. Ideal for autonomous agents that occasionally need to cyclically shift arrays as part of a larger workflow and want a serverless, x402-native micro-API on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:00.284Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-bef2ad3d"}