{"uid":"cap_goH_3fSujrecMnMf_j-dZ","slug":"one-engine-array-reverse-14481c71","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jjSY3GwO398ggnoIcWkUL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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 controls.","exampleAgentPrompt":"Reverse this array of values for me: [5, 3, 8, 1, 9, 2] — just give me back the reversed order.","exampleUseCases":[{"title":"Reverse a leaderboard ranking","prompt":"I have a leaderboard array [\"Alice\",\"Bob\",\"Carol\",\"Dave\"] ranked from best to worst — can you reverse it so it goes from worst to best?"},{"title":"Invert a time-series data sequence","prompt":"Reverse this array of timestamps for me so the oldest entries come first: [\"2024-06-01\",\"2024-05-15\",\"2024-04-30\",\"2024-04-01\"]"},{"title":"Flip a priority queue for processing","prompt":"I have a task queue [\"low\",\"medium\",\"high\",\"critical\"] and I want to process it in reverse priority order — flip the array around for me."}],"resultDescription":"Returns a JSON object containing the reversed array. The response will have the input array's elements in reverse order, potentially scoped by the optional offset and size parameters.","failureModes":["Array exceeds 1000 items — request rejected with validation error","Missing required 'values' field — returns schema validation error","Invalid payment or insufficient USDC balance — x402 payment failure before processing","Malformed JSON body — returns parse error","Network timeout on Cloudflare Workers edge"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, pay-per-call array reversal without standing up your own compute or managing dependencies. Ideal for autonomous agents that need deterministic utility operations on small-to-medium arrays (up to 1000 elements) and are already operating on the Base/x402 payment rail at $0.0015 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:23.723Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-c1e3b700"}