{"uid":"cap_v81_gf6QKgpy62Fg8HBBo","slug":"one-engine-array-reverse-a6689e2f","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/t3?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__60bPM5RwfZtAg0VKQw9e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reverses a JSON array of up to 1000 items, with optional offset and size controls for partial reversal.","exampleAgentPrompt":"Reverse this array of items for me: [\"apple\", \"banana\", \"cherry\", \"date\", \"elderberry\"] — I want them in the opposite order.","exampleUseCases":[{"title":"Reverse a ranked leaderboard","prompt":"I have a leaderboard stored as an array from first to last place — can you reverse it so the last-place entry comes first? The array is [\"Alice\", \"Bob\", \"Carol\", \"Dave\", \"Eve\"]."},{"title":"Flip a processing queue order","prompt":"I need to reverse the order of my task queue so the most recently added tasks run first. Here's the queue: [\"task_001\", \"task_002\", \"task_003\", \"task_004\", \"task_005\", \"task_006\"]."},{"title":"Invert a time-series data log","prompt":"Can you reverse this chronological list of log entries so the most recent one appears first? The list has entries like [\"2024-01-01\", \"2024-01-02\", \"2024-01-03\", \"2024-01-04\"]."}],"resultDescription":"Returns a JSON object containing the reversed array. The output reflects the input values in reversed order, optionally sliced by size and offset parameters.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Payment failure via x402 — 402 response returned before processing","Malformed JSON in request body — parse error","Invalid offset or size integers causing out-of-bounds behavior"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap, pay-per-call array reversal without spinning up compute infrastructure. Ideal for autonomous agents that occasionally need to flip ordered lists as part of a larger workflow, especially when already operating within the x402/Base micropayment ecosystem. At $0.001 USDC per call it is cost-effective for sporadic use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:27.512Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-c1e3b700"}