{"uid":"cap_xfhvwTFE1DrPMtlrDDItK","slug":"one-engine-array-rotate-t2-ce0470bc","name":"ONE Engine Array Rotate (t2)","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F1oXW8zQxFbhvO1rjg2BQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 specified offset, optionally comparing against a second array.","exampleAgentPrompt":"Rotate this array [1, 2, 3, 4, 5, 6, 7] by an offset of 3 positions using ONE Engine's array rotate utility.","exampleUseCases":[{"title":"Round-robin task assignment rotation","prompt":"I have a list of 6 workers [\"Alice\",\"Bob\",\"Carol\",\"Dave\",\"Eve\",\"Frank\"] and I want to rotate assignments by 2 positions so the next person in the cycle takes over — can you rotate that array by offset 2?"},{"title":"Carousel slide reordering","prompt":"My carousel has slides in this order [\"intro\",\"features\",\"pricing\",\"testimonials\",\"cta\"] and I need to shift it so \"pricing\" comes first — rotate the array by 2 positions."},{"title":"Scheduling shift rotation","prompt":"I have a weekly shift schedule [\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\"] and need to rotate it by 1 so Tuesday becomes the starting day — please rotate the array by offset 1."}],"resultDescription":"A JSON object containing the rotated array, with elements shifted circularly by the specified offset. If an optional comparison array is provided, the result may include comparison data alongside the rotated output.","failureModes":["Array exceeds 1000 items — request rejected","Invalid or missing 'values' field — validation error","Non-integer offset value — parameter error","Payment not attached or insufficient — HTTP 402 response","Network timeout on Cloudflare Worker edge","Malformed JSON body — parse error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, lightweight, pay-per-call array rotation operation without standing up your own compute, particularly in autonomous agent workflows on Base using x402 micropayments. Ideal for round-robin scheduling, circular buffer manipulation, or any scenario requiring deterministic cyclic array reordering at sub-cent cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:55.629Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-t2-ce0470bc"}