{"uid":"cap_EJY5C-BqYc_f48liMYNgQ","slug":"one-engine-array-reverse-top-10-fb79fc96","name":"ONE Engine Array Reverse (Top 10)","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/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y20sZydcbK8_CUs9qlglE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","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 and returns the last 10 elements (tail) of the reversed result.","exampleAgentPrompt":"Reverse this array of values and give me the top 10 from the reversed result: [100, 42, 7, 88, 3, 56, 19, 74, 61, 5, 30, 99].","exampleUseCases":[{"title":"Bottom-10 leaderboard from ranked list","prompt":"I have a leaderboard array sorted best-to-worst and I need to see the 10 worst-performing entries — reverse the array and give me the top 10 from that reversed list: [950, 870, 810, 760, 700, 650, 600, 550, 490, 430, 380, 320, 260]."},{"title":"Reverse chronological tail of event log","prompt":"Here's a list of event timestamps in ascending order — reverse it and return the 10 most recent ones: [1700000001, 1700000050, 1700000120, 1700000200, 1700000310, 1700000400, 1700000510, 1700000600, 1700000700, 1700000800, 1700000900, 1700001000]."},{"title":"Flip priority queue and extract lowest-priority items","prompt":"I've got a priority queue array ordered highest to lowest priority — flip the order and pull the last 10 so I can see the lowest-priority tasks: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]."}],"resultDescription":"Returns a JSON object containing the reversed array sliced to at most 10 items from the tail (or from an offset), representing the final elements of the input array after reversal. Optional comparison array results may also be included.","failureModes":["Array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Malformed JSON array input — parse error","Payment failure via x402 on Base — 402 response before processing","Invalid offset or size integer — unexpected slice result"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call array reversal with automatic tail-slicing (top 10) on the Base blockchain via x402 micropayments. Ideal for AI agents that need quick list inversion without standing up their own compute, especially when processing short arrays (≤1000 items) and only need the trailing segment of the reversed result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:03.058Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-top-10-fb79fc96"}