{"uid":"cap_CIDaYCfNh8MCOh7DBHWDY","slug":"one-engine-array-flatten-t5-cc746a1d","name":"ONE Engine Array Flatten (t5)","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/flatten/t5?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.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q3uR9Auk6FX1g_Z1sqP5V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Flattens a nested JSON array into a single-level array via a pay-per-call API using x402 on Base.","exampleAgentPrompt":"Can you flatten this nested JSON array for me? Here it is: [[1, 2], [3, [4, 5]], 6] — just collapse all the nesting into a single flat list.","exampleUseCases":[{"title":"Normalizing nested API response data","prompt":"I got this deeply nested array back from another API: [[\"a\",\"b\"],[\"c\",[\"d\",\"e\"]],\"f\"] — can you flatten it into a single-level list so I can process each item uniformly?"},{"title":"Preprocessing data for ML pipeline","prompt":"Before I feed this dataset into my model, I need to flatten this array of arrays into one flat list: [[10,20],[30,[40,50]],60]. Can you do that?"},{"title":"Comparing two flattened arrays","prompt":"Flatten this nested array [[1,2],[3,[4,5]]] for me and also compare it against this other array [1,2,3,4,5] so I can see if they match after flattening."}],"resultDescription":"Returns a JSON object containing the flattened version of the input array, with all nested sub-arrays collapsed into a single-level array. Additional metadata may be included depending on optional parameters like size and offset.","failureModes":["Input array exceeds 1000 items — request rejected with error","Malformed or non-array values input — schema validation error","Payment failure via x402 — 402 Payment Required returned","Missing required 'values' field — 400 Bad Request","Network timeout on Cloudflare Worker edge — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost, pay-per-call array flattening operation without spinning up your own compute, especially within autonomous agent workflows on Base using x402 micropayments. Ideal for agents that handle small-to-medium JSON arrays (up to 1000 items) and need a simple, reliable transformation without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:11.152Z","isFirstParty":false,"canonicalSlug":"one-engine-array-flatten-t5-cc746a1d"}