{"uid":"cap_geAsgVkMRi1_-NvAUsQv2","slug":"one-engine-array-reverse-843eda07","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Pobob3z_pJCb-c7FNJBTe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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 the order of this array for me: [\"apple\", \"banana\", \"cherry\", \"date\", \"elderberry\"]","exampleUseCases":[{"title":"Reverse paginated result list","prompt":"I have a list of search results returned in ascending order — can you reverse them so the last item comes first? The array is [\"result1\", \"result2\", \"result3\", \"result4\", \"result5\"]."},{"title":"Flip leaderboard rankings","prompt":"Reverse this leaderboard array so the last-place entry shows up first: [\"Alice\", \"Bob\", \"Carol\", \"Dave\", \"Eve\"]. I want to display it from lowest to highest score."},{"title":"Reverse time-series data points","prompt":"I have these timestamps in chronological order and I need them reversed so the most recent comes first: [\"2024-01-01\", \"2024-02-01\", \"2024-03-01\", \"2024-04-01\"]."}],"resultDescription":"Returns a JSON object containing the reversed array, with elements in opposite order from the input. Optional offset and size parameters allow reversing only a subset of the array.","failureModes":["Array exceeds 1000 items — request rejected","Invalid JSON array in values field — validation error","Missing required 'values' field — 400 error","Payment failure via x402 — 402 response before processing","Malformed request body — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap, pay-per-call array reversal without spinning up your own compute. Ideal for autonomous agents on Base using x402 micropayments that need lightweight utility operations at $0.0065 per call. Best for arrays up to 1000 elements where a hosted utility call is more convenient than implementing reversal logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:14.954Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-c1e3b700"}