{"uid":"cap_61S_sGhYg6V_Xf720GN7Q","slug":"one-engine-array-rotate-b8241282","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/t3?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.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_dvjvfSpFyK45HxpKLq20l","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":"Rotates a JSON array by a given offset, optionally comparing against a second array","exampleAgentPrompt":"Rotate the array [1, 2, 3, 4, 5] by an offset of 2 positions using ONE Engine.","exampleUseCases":[{"title":"Circular queue rotation for scheduler","prompt":"I have a list of tasks [\"email\", \"backup\", \"report\", \"sync\", \"cleanup\"] and I need to rotate it by 3 positions so the next cycle starts from the right task — can you rotate that array by offset 3?"},{"title":"Shift and compare two ordered lists","prompt":"I have two arrays — [\"a\",\"b\",\"c\",\"d\"] and [\"c\",\"d\",\"a\",\"b\"] — rotate the first one by 2 and tell me if it matches the second."},{"title":"Round-robin assignment rotation","prompt":"Rotate my list of team members [\"Alice\",\"Bob\",\"Carol\",\"Dave\",\"Eve\"] by 1 position so the next person in the round-robin gets assigned first this week."}],"resultDescription":"Returns a JSON object containing the rotated array after applying the given offset, and optionally the result of comparing the rotated array against a provided second array.","failureModes":["Array exceeds 1000-item limit — request rejected","Invalid offset type (non-integer) — validation error","Missing required 'values' field — 400 bad request","Payment not included or insufficient — 402 payment required","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001 USDC), pay-per-call array rotation computation without spinning up custom code, especially in autonomous agent pipelines on Base using x402 micropayments. Ideal for lightweight utility transforms where setting up a local function is impractical or when you want a stateless external compute call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:42.620Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-bef2ad3d"}