{"uid":"cap_pEB5s4RpDX6BhGpCnXARR","slug":"one-engine-array-reverse-fe07109e","name":"ONE Engine Array Reverse","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/reverse/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2yff8NPJLnjRGAVhRBsZY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reverses the order of elements in a JSON array, with optional offset and size parameters.","exampleAgentPrompt":"Reverse the order of this array for me: [1, 2, 3, 4, 5] — return all 5 elements reversed.","exampleUseCases":[{"title":"Reverse sorted ranking list","prompt":"I have a leaderboard array sorted ascending and need it flipped descending — reverse [10, 20, 30, 40, 50] so the highest scores come first."},{"title":"Invert playlist order","prompt":"Take this playlist of 8 song IDs [\"a1\",\"b2\",\"c3\",\"d4\",\"e5\",\"f6\",\"g7\",\"h8\"] and reverse the order so the last track plays first."},{"title":"Reverse paginated data slice","prompt":"I have a 1000-item log array and need items 100 through 200 reversed — use offset 100 and size 100 on this array."}],"resultDescription":"A JSON object containing the reversed array, with elements in the opposite order from the input. The response may also reflect optional offset and size parameters if provided, returning a reversed slice of the original array.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Invalid JSON array format — parse error","Payment failure via x402 — 402 response returned","Network timeout on Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need a simple, low-cost, pay-per-call array reversal without provisioning your own compute. Ideal for autonomous agents that occasionally need to flip array order as part of a larger workflow and want to avoid managing infrastructure. At $0.004 USDC per call on Base via x402, it suits agents with on-chain payment capabilities needing lightweight utility operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:02.289Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-c1e3b700"}