{"uid":"cap_ZRbelzmF-ysERztZMxZPM","slug":"one-engine-array-rotate-fe1fb471","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qLt8u53JqjVQ-Ehrw4332","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rotates the elements of a JSON array by a given offset, optionally against a comparison array.","exampleAgentPrompt":"Rotate the array [1, 2, 3, 4, 5, 6, 7] by an offset of 3 positions.","exampleUseCases":[{"title":"Round-robin task queue rotation","prompt":"I have a list of workers ['Alice','Bob','Carol','Dave'] and I need to rotate it by 1 position each cycle so everyone gets a fair turn — rotate it by offset 1 for me."},{"title":"Cyclic shift of sensor readings","prompt":"Take this array of 8 sensor readings [10, 20, 30, 40, 50, 60, 70, 80] and rotate it by 5 positions so I can align it with another dataset."},{"title":"Playlist rotation for scheduling","prompt":"I have a playlist order ['Song A','Song B','Song C','Song D','Song E'] and I want to rotate it by 2 spots so it starts from 'Song C'."}],"resultDescription":"Returns an object containing the rotated array, with elements cyclically shifted by the specified offset. Optional fields may include comparison results if a second array was provided.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Offset not an integer — type error","Payment not attached or insufficient USDC — 402 response","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a simple, low-cost, pay-per-call array rotation operation without setting up your own computation infrastructure. Ideal for autonomous agents on Base that need lightweight utility transformations as part of a larger pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:15.220Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-bef2ad3d"}