{"uid":"cap_AvkdKkb-VDChXIEPheHno","slug":"one-engine-array-rotate-t5-91bf0608","name":"ONE Engine Array Rotate (T5)","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/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aEW3h4tXxgTvASktKDqEN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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 using a second comparison array or size parameter.","exampleAgentPrompt":"Rotate the array [1, 2, 3, 4, 5] by an offset of 2 positions so the elements wrap around cyclically.","exampleUseCases":[{"title":"Shift schedule rotation slots","prompt":"I have a weekly schedule list [\"Alice\",\"Bob\",\"Carol\",\"Dave\"] and I want to rotate it by 1 so everyone moves to the next slot — can you shift the array by offset 1?"},{"title":"Cycle playlist order by position","prompt":"Take my playlist array [\"Song A\",\"Song B\",\"Song C\",\"Song D\",\"Song E\"] and rotate it by 3 positions so the 4th song comes first."},{"title":"Wraparound seating arrangement","prompt":"I have a seating array [\"Table1\",\"Table2\",\"Table3\",\"Table4\",\"Table5\",\"Table6\"] and I need to rotate it by an offset of 4 to reassign positions — run the array rotation for me."}],"resultDescription":"Returns a JSON object containing the rotated array, with elements cyclically shifted by the specified offset. The output array preserves all original elements with wraparound semantics.","failureModes":["Missing required 'values' field returns a validation error","Array exceeding 1000 items may be rejected or truncated","Invalid offset type (non-integer) causes a schema validation error","Payment failure via x402 returns HTTP 402 before processing","Malformed JSON body returns a parse error"],"whenToPreferThis":"Choose this endpoint when you need a simple, low-cost, pay-per-call array rotation computation without setting up your own infrastructure. Ideal for autonomous agents needing cyclic list operations on-demand with micropayment billing via x402 on Base. Prefer alternatives if you need batch processing of many arrays simultaneously or complex array transformations beyond rotation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:42:26.935Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-t5-91bf0608"}